Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork939
Commit359116b
committed
List all non-passing tests in test summaries
This changes the default in pyproject.toml so that pytest listsa line for each non-passing test at the end of a run, showing thetest name and, where available, condensed information about thestatus, such as the "reason" argument for an xfailing or skippedtest.Previously only failed and errored tests were listed in thesummary. Now skipped, xfailed, and xpassed tests are listed too.The benefit is in keeping track of the status of tests. Althoughshowing the full failure output with stack trace and relevant codeunder test would be too distracting for tests marked xfail, it isvaluable to not merely run those tests but be able to see a lineshowing their names and statuses. Likewise, a number of tests arecurrently marked skipped, and while some of them are skipped on aparticular platform because they don't make sense to run on thatplatform, a number of others are skipped by raising SkipTest inresponse to a failure condition on Windows. (Those consist mostlyof the tests skipped as a result of code discussed in#790.)This also has the more specific benefit of making it easier to marktests as xfail in order to add CI jobs for native Windows, and moreimportantly to allow information about their status to later beused to understand and fix bugs on Windows.)1 parent74cc671 commit359116b
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 |
| - | |
18 |
| - | |
| 17 | + | |
| 18 | + | |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
|
0 commit comments
Comments
(0)