33
44**Incompatible changes **
55
6+
67A number of incompatible changes were made in this release, with the intent of removing features deprecated for a long
78time or change existing behaviors in order to make them less surprising/more useful.
89
@@ -159,6 +160,14 @@ time or change existing behaviors in order to make them less surprising/more use
159160* Plugins now benefit from assertion rewriting. Thanks
160161 `@sober7 `_, `@nicoddemus `_ and `@flub `_ for the PR.
161162
163+ * Change ``report.outcome `` for ``xpassed `` tests to ``"passed" `` in non-strict
164+ mode and ``"failed" `` in strict mode. Thanks to `@hackebrot `_ for the PR
165+ (`#1795 `_) and `@gprasad84 `_ for report (`#1546 `_).
166+
167+ * Tests marked with ``xfail(strict=False) `` (the default) now appear in
168+ JUnitXML reports as passing tests instead of skipped.
169+ Thanks to `@hackebrot `_ for the PR (`#1795 `_).
170+
162171* Highlight path of the file location in the error report to make it easier to copy/paste.
163172 Thanks `@suzaku `_ for the PR (`#1778 `_).
164173
@@ -175,6 +184,9 @@ time or change existing behaviors in order to make them less surprising/more use
175184 fixture is declared in a test function.
176185 Thanks `@nicoddemus `_ for the PR.
177186
187+ * ``pytest_terminal_summary `` hook now receives the ``exitstatus ``
188+ of the test session as argument. Thanks `@blueyed `_ for the PR (`#1809 `_).
189+
178190* Parametrize ids can accept ``None `` as specific test id, in which case the
179191 automatically generated id for that argument will be used.
180192 Thanks `@palaviv `_ for the complete PR (`#1468 `_).
@@ -279,7 +291,10 @@ time or change existing behaviors in order to make them less surprising/more use
279291 and there are more modern and better alternatives (see `#830 `_).
280292 Thanks `@nicoddemus `_ for the PR.
281293
282- *
294+ * Improve error message with fixture lookup errors: add an 'E' to the first
295+ line and '>' to the rest. Fixes `#717 `_. Thanks `@blueyed `_ for reporting and
296+ a PR, `@eolo999 `_ for the initial PR and `@tomviner `_ for his guidance during
297+ EuroPython2016 sprint.
283298
284299*
285300
@@ -322,11 +337,11 @@ time or change existing behaviors in order to make them less surprising/more use
322337* Fixed scope overriding inside metafunc.parametrize (`#634 `_).
323338 Thanks to `@Stranger6667 `_ for the PR.
324339
325- *
326-
327- *
340+ * Fixed the total tests tally in junit xml output (`#1798 `_).
341+ Thanks to `@cryporchild `_ for the PR.
328342
329- *
343+ * Fixed off-by-one error with lines from ``request.node.warn ``.
344+ Thanks to `@blueyed `_ for the PR.
330345
331346*
332347
@@ -354,6 +369,7 @@ time or change existing behaviors in order to make them less surprising/more use
354369.. _#1526 : https://github.com/pytest-dev/pytest/pull/1526
355370.. _#1539 : https://github.com/pytest-dev/pytest/issues/1539
356371.. _#1544 : https://github.com/pytest-dev/pytest/issues/1544
372+ .. _#1546 : https://github.com/pytest-dev/pytest/issues/1546
357373.. _#1553 : https://github.com/pytest-dev/pytest/issues/1553
358374.. _#1562 : https://github.com/pytest-dev/pytest/issues/1562
359375.. _#1579 : https://github.com/pytest-dev/pytest/issues/1579
@@ -377,6 +393,9 @@ time or change existing behaviors in order to make them less surprising/more use
377393.. _#1740 : https://github.com/pytest-dev/pytest/issues/1740
378394.. _#1749 : https://github.com/pytest-dev/pytest/issues/1749
379395.. _#1778 : https://github.com/pytest-dev/pytest/pull/1778
396+ .. _#1795 : https://github.com/pytest-dev/pytest/pull/1795
397+ .. _#1798 : https://github.com/pytest-dev/pytest/pull/1798
398+ .. _#1809 : https://github.com/pytest-dev/pytest/pull/1809
380399.. _#372 : https://github.com/pytest-dev/pytest/issues/372
381400.. _#457 : https://github.com/pytest-dev/pytest/issues/457
382401.. _#460 : https://github.com/pytest-dev/pytest/pull/460
@@ -393,13 +412,15 @@ time or change existing behaviors in order to make them less surprising/more use
393412.. _@BeyondEvil : https://github.com/BeyondEvil
394413.. _@blueyed : https://github.com/blueyed
395414.. _@ceridwen : https://github.com/ceridwen
415+ .. _@cryporchild : https://github.com/cryporchild
396416.. _@csaftoiu : https://github.com/csaftoiu
397417.. _@d6e : https://github.com/d6e
398418.. _@davehunt : https://github.com/davehunt
399419.. _@DRMacIver : https://github.com/DRMacIver
400420.. _@eolo999 : https://github.com/eolo999
401421.. _@fengxx : https://github.com/fengxx
402422.. _@flub : https://github.com/flub
423+ .. _@gprasad84 : https://github.com/gprasad84
403424.. _@graingert : https://github.com/graingert
404425.. _@hartym : https://github.com/hartym
405426.. _@JonathonSonesen : https://github.com/JonathonSonesen
0 commit comments