Repository navigation
Commit c6ad0f8
Accept pytest exit code 1 for some tests cannot be collected (microsoft#20074)
In case you have some tests where not successfully collected (e.g. 10 ok
and 1 fail) vscode display only an error in the test explorer. For
pytest it is possible to set the flag `--continue-on-collection-errors`
but also vscode only display an error and not the other successfully
collected tests.
Pytest has a specific exit code for this behaviour (1)
[https://docs.pytest.org/en/7.1.x/reference/exit-codes.html](https://docs.pytest.org/en/7.1.x/reference/exit-codes.html)
Co-authored-by: Eleanor Boyd <eleanorboyd@microsoft.com>1 parent f62e96c commit c6ad0f8
2 files changed
Lines changed: 28 additions & 0 deletions
File tree
- pythonFiles
- testing_tools/adapter/pytest
- tests/testing_tools/adapter/pytest
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
406 | 431 | | |
407 | 432 | | |
408 | 433 | | |
| |||
0 commit comments