doc/en/announce/release-2.2.0.rst
pytest-2.2.0 is a test-suite compatible release of the popular py.test testing tool. Plugins might need upgrades. It comes with these improvements:
easier and more powerful parametrization of tests:
improved handling of test markers and refined marking mechanism:
duration profiling: new "--duration=N" option showing the N slowest test execution or setup/teardown calls. This is most useful if you want to find out where your slowest test code is.
also 2.2.0 performs more eager calling of teardown/finalizers functions resulting in better and more accurate reporting when they fail
Besides there is the usual set of bug fixes along with a cleanup of pytest's own test suite allowing it to run on a wider range of environments.
For general information, see extensive docs with examples here:
http://pytest.org/
If you want to install or upgrade pytest you might just type::
pip install -U pytest # or
easy_install -U pytest
Thanks to Ronny Pfannschmidt, David Burns, Jeff Donner, Daniel Nouri, Alfredo Deza and all who gave feedback or sent bug reports.
best, holger krekel
While test suites should work unchanged you might need to upgrade plugins:
You need a new version of the pytest-xdist plugin (1.7) for distributing test runs.
Other plugins might need an upgrade if they implement
the pytest_runtest_logreport hook which now is called unconditionally
for the setup/teardown fixture phases of a test. You may choose to
ignore setup/teardown failures by inserting "if rep.when != 'call': return"
or something similar. Note that most code probably "just" works because
the hook was already called for failing setup/teardown phases of a test
so a plugin should have been ready to grok such reports already.