Navigation
index
next
|
previous
|
pytest-2.3.4.1
»
quicklinks
home
TOC/contents
install
changelog
examples
customize
issues[bb]
contact
Previous topic
Full pytest documentation
Next topic
pytest: helps you write better programs
Getting started basics
ΒΆ
pytest: helps you write better programs
Installation and Getting Started
Installation
Our first test run
Asserting that a certain exception is raised
Grouping multiple tests in a class
Going functional: requesting a unique temporary directory
Where to go next
Known Installation issues
Usage and Invocations
Calling pytest through
python
-m
pytest
Getting help on version, option names, environment variables
Stopping after the first (or N) failures
Specifying tests / selecting tests
Modifying Python traceback printing
Dropping to PDB (Python Debugger) on failures
Setting a breakpoint / aka
set_trace()
Profiling test execution duration
Creating JUnitXML format files
Creating resultlog format files
Sending test report to online pastebin service
Calling pytest from Python code
Good Integration Practises
Work with virtual environments
Use tox and Continuous Integration servers
Create a py.test standalone script
Integrating with distutils /
python
setup.py
test
Integration with setuptools/distribute test commands
Conventions for Python test discovery
Choosing a test layout / import rules
Project examples
Some organisations using py.test
Some Issues and Questions
On naming, nosetests, licensing and magic
Function arguments, parametrized tests and setup
py.test interaction with other packages
Navigation
index
next
|
previous
|
pytest-2.3.4.1
»