Skip to content

Commit 8a1869d

Browse files
committed
Document the –ignore-unknown-dependency command line option.
1 parent f6f8e72 commit 8a1869d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

doc/src/configuration.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,18 @@ Configuration file options can be set in the `ini file`.
2323
decorated. If set to `True`, the outcome of all tests will be
2424
registered. It has the same effect as if all tests are
2525
implicitly decorated with :func:`pytest.mark.dependency`.
26+
27+
Command line options
28+
--------------------
29+
30+
The following command line options are added by pytest.dependency:
31+
32+
`--ignore-unknown-dependency`
33+
By default, a test will be skipped unless all the dependencies
34+
have been run successful. If this option is set, a test will be
35+
skipped if any of the dependencies has been skipped or failed.
36+
E.g. dependencies that have not been run at all will be ignored.
37+
38+
This may be useful if you run only a subset of the testsuite and
39+
some tests in the selected set are marked to depend on other
40+
tests that have not been selected.

0 commit comments

Comments
 (0)