Skip to content

Commit 42d1b7b

Browse files
authored
Add addopts to configuration.rst
1 parent 20b389c commit 42d1b7b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/configuration.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Enable testing
2727
--------------
2828
| **kwarg**: ---
2929
| **CLI**: ``--mpl``
30-
| **INI**: ---
30+
| **INI**: ``addopts = --mpl``
3131
| Default: ``False``
3232
3333
To enable image comparison testing, pass ``--mpl`` when running pytest.
@@ -46,7 +46,7 @@ Enable baseline image generation
4646
--------------------------------
4747
| **kwarg**: ---
4848
| **CLI**: ``--mpl-generate-path=<path>``
49-
| **INI**: ---
49+
| **INI**: ``addopts = --mpl-generate-path=<path>``
5050
| Default: ``None``
5151
5252
Baseline images will be generated and saved to the specified directory path, relative to where pytest was run.
@@ -63,7 +63,7 @@ Enable baseline hash generation
6363
-------------------------------
6464
| **kwarg**: ---
6565
| **CLI**: ``--mpl-generate-hash-library=<path>``
66-
| **INI**: ---
66+
| **INI**: ``addopts = --mpl-generate-hash-library=<path>``
6767
| Default: ``None``
6868
6969
Baseline hashes will be generated and saved to the specified JSON file path, relative to where pytest was run.
@@ -116,7 +116,7 @@ Whether ``--mpl-baseline-path`` should also be relative to the test file
116116
------------------------------------------------------------------------
117117
| **kwarg**: ---
118118
| **CLI**: ``--mpl-baseline-relative``
119-
| **INI**: ---
119+
| **INI**: ``addopts = --mpl-baseline-relative``
120120
| Default: ``False``
121121
122122
If this option is set, the baseline directory specified by ``--mpl-baseline-path`` will be interpreted as being relative to the test file.

0 commit comments

Comments
 (0)