parent
41d211c24a
commit
3ed05ee4d6
|
@ -14,7 +14,7 @@ otherwise pytest should skip running the test altogether. Common examples are sk
|
||||||
windows-only tests on non-windows platforms, or skipping tests that depend on an external
|
windows-only tests on non-windows platforms, or skipping tests that depend on an external
|
||||||
resource which is not available at the moment (for example a database).
|
resource which is not available at the moment (for example a database).
|
||||||
|
|
||||||
A **xfail** means that you expect a test to fail for some reason.
|
An **xfail** means that you expect a test to fail for some reason.
|
||||||
A common example is a test for a feature not yet implemented, or a bug not yet fixed.
|
A common example is a test for a feature not yet implemented, or a bug not yet fixed.
|
||||||
When a test passes despite being expected to fail (marked with ``pytest.mark.xfail``),
|
When a test passes despite being expected to fail (marked with ``pytest.mark.xfail``),
|
||||||
it's an **xpass** and will be reported in the test summary.
|
it's an **xpass** and will be reported in the test summary.
|
||||||
|
|
Loading…
Reference in New Issue