(pytester: Pytester)
| 95 | |
| 96 | |
| 97 | def test_stepwise_output_summary(pytester: Pytester) -> None: |
| 98 | pytester.makepyfile( |
| 99 | """ |
| 100 | import pytest |
| 101 | @pytest.mark.parametrize("expected", [True, True, True, True, False]) |
| 102 | def test_data(expected): |
| 103 | assert expected |
| 104 | """ |
| 105 | ) |
| 106 | result = pytester.runpytest("-v", "--stepwise") |
| 107 | result.stdout.fnmatch_lines(["stepwise: no previously failed tests, not skipping."]) |
| 108 | result = pytester.runpytest("-v", "--stepwise") |
| 109 | result.stdout.fnmatch_lines( |
| 110 | ["stepwise: skipping 4 already passed items.", "*1 failed, 4 deselected*"] |
| 111 | ) |
| 112 | |
| 113 | |
| 114 | def test_fail_and_continue_with_stepwise(stepwise_pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected