| 1 |
pytest-2.3.5: bug fixes and little improvements |
| 2 |
=========================================================================== |
| 3 |
|
| 4 |
pytest-2.3.5 is a maintenance release with many bug fixes and little |
| 5 |
improvements. See the changelog below for details. No backward |
| 6 |
compatibility issues are foreseen and all plugins which worked with the |
| 7 |
prior version are expected to work unmodified. Speaking of which, a |
| 8 |
few interesting new plugins saw the light last month: |
| 9 |
|
| 10 |
- pytest-instafail: show failure information while tests are running |
| 11 |
- pytest-qt: testing of GUI applications written with QT/Pyside |
| 12 |
- pytest-xprocess: managing external processes across test runs |
| 13 |
- pytest-random: randomize test ordering |
| 14 |
|
| 15 |
And several others like pytest-django saw maintenance releases. |
| 16 |
For a more complete list, check out |
| 17 |
https://pypi.org/search/?q=pytest |
| 18 |
|
| 19 |
For general information see: |
| 20 |
|
| 21 |
http://pytest.org/ |
| 22 |
|
| 23 |
To install or upgrade pytest: |
| 24 |
|
| 25 |
pip install -U pytest # or |
| 26 |
easy_install -U pytest |
| 27 |
|
| 28 |
Particular thanks to Floris, Ronny, Benjamin and the many bug reporters |
| 29 |
and fix providers. |
| 30 |
|
| 31 |
may the fixtures be with you, |
| 32 |
holger krekel |
| 33 |
|
| 34 |
|
| 35 |
Changes between 2.3.4 and 2.3.5 |
| 36 |
----------------------------------- |
| 37 |
|
| 38 |
- never consider a fixture function for test function collection |
| 39 |
|
| 40 |
- allow re-running of test items / helps to fix pytest-reruntests plugin |
| 41 |
and also help to keep less fixture/resource references alive |
| 42 |
|
| 43 |
- put captured stdout/stderr into junitxml output even for passing tests |
| 44 |
(thanks Adam Goucher) |
| 45 |
|
| 46 |
- Issue 265 - integrate nose setup/teardown with setupstate |
| 47 |
so it doesn't try to teardown if it did not setup |
| 48 |
|
| 49 |
- issue 271 - don't write junitxml on worker nodes |
| 50 |
|
| 51 |
- Issue 274 - don't try to show full doctest example |
| 52 |
when doctest does not know the example location |
| 53 |
|
| 54 |
- issue 280 - disable assertion rewriting on buggy CPython 2.6.0 |
| 55 |
|
| 56 |
- inject "getfixture()" helper to retrieve fixtures from doctests, |
| 57 |
thanks Andreas Zeidler |
| 58 |
|
| 59 |
- issue 259 - when assertion rewriting, be consistent with the default |
| 60 |
source encoding of ASCII on Python 2 |
| 61 |
|
| 62 |
- issue 251 - report a skip instead of ignoring classes with init |
| 63 |
|
| 64 |
- issue250 unicode/str mixes in parametrization names and values now works |
| 65 |
|
| 66 |
- issue257, assertion-triggered compilation of source ending in a |
| 67 |
comment line doesn't blow up in python2.5 (fixed through py>=1.4.13.dev6) |
| 68 |
|
| 69 |
- fix --genscript option to generate standalone scripts that also |
| 70 |
work with python3.3 (importer ordering) |
| 71 |
|
| 72 |
- issue171 - in assertion rewriting, show the repr of some |
| 73 |
global variables |
| 74 |
|
| 75 |
- fix option help for "-k" |
| 76 |
|
| 77 |
- move long description of distribution into README.rst |
| 78 |
|
| 79 |
- improve docstring for metafunc.parametrize() |
| 80 |
|
| 81 |
- fix bug where using capsys with pytest.set_trace() in a test |
| 82 |
function would break when looking at capsys.readouterr() |
| 83 |
|
| 84 |
- allow to specify prefixes starting with "_" when |
| 85 |
customizing python_functions test discovery. (thanks Graham Horler) |
| 86 |
|
| 87 |
- improve PYTEST_DEBUG tracing output by putting |
| 88 |
extra data on a new lines with additional indent |
| 89 |
|
| 90 |
- ensure OutcomeExceptions like skip/fail have initialized exception attributes |
| 91 |
|
| 92 |
- issue 260 - don't use nose special setup on plain unittest cases |
| 93 |
|
| 94 |
- fix issue134 - print the collect errors that prevent running specified test items |
| 95 |
|
| 96 |
- fix issue266 - accept unicode in MarkEvaluator expressions |