@@ -5,36 +5,46 @@ This section explains configuration options for pytest-dependency, but
5
5
also options for pytest itself or other plugins that are recommended
6
6
for the use with pytest-dependency.
7
7
8
+ Notes on configuration for other plugins
9
+ ----------------------------------------
10
+
11
+ pytest-xdist
12
+ Test run parallelization in pytest-xdist is incompatible with
13
+ pytest-dependency, see :ref: `install-other-packages `. By default,
14
+ parallelization is disabled in pytest-xdist (`--dist=no `). You are
15
+ advised to leave this default.
16
+
8
17
Configuration file options
9
18
--------------------------
10
19
11
20
Configuration file options can be set in the `ini file `.
12
21
13
- minversion
14
- This is a builtin configuration option of pytest itself. Since
15
- pytest-dependency requires pytest 2.8.0 or newer, it is
16
- recommended to set this option accordingly.
17
-
18
- automark_dependency
19
- This is a flag. If set to `False `, the default, the outcome of
20
- a test will only be registered if the test has been decorated
21
- with the :func: `pytest.mark.dependency ` marker. As a results,
22
- all tests, the dependencies and the dependent tests must be
23
- decorated. If set to `True `, the outcome of all tests will be
24
- registered. It has the same effect as if all tests are
25
- implicitly decorated with :func: `pytest.mark.dependency `.
22
+ minversion
23
+ This is a builtin configuration option of pytest itself. Since
24
+ pytest-dependency requires pytest 2.8.0 or newer, it is recommended
25
+ to set this option accordingly, either to 2.8.0 or to a newer
26
+ version, if required by your test code.
27
+
28
+ automark_dependency
29
+ This is a flag. If set to `False `, the default, the outcome of a
30
+ test will only be registered if the test has been decorated with
31
+ the :func: `pytest.mark.dependency ` marker. As a results, all
32
+ tests, the dependencies and the dependent tests must be decorated.
33
+ If set to `True `, the outcome of all tests will be registered. It
34
+ has the same effect as if all tests are implicitly decorated with
35
+ :func: `pytest.mark.dependency `.
26
36
27
37
Command line options
28
38
--------------------
29
39
30
40
The following command line options are added by pytest.dependency:
31
41
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.
42
+ `--ignore-unknown-dependency `
43
+ By default, a test will be skipped unless all the dependencies have
44
+ been run successful. If this option is set, a test will be skipped
45
+ if any of the dependencies has been skipped or failed.
46
+ E.g. dependencies that have not been run at all will be ignored.
37
47
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.
48
+ This may be useful if you run only a subset of the testsuite and
49
+ some tests in the selected set are marked to depend on other tests
50
+ that have not been selected.
0 commit comments