Skip to content

Commit 2ba0db9

Browse files
authored
Rewrite paragraph about requirements file
1 parent a678bc1 commit 2ba0db9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ functions and methods (automatic test discovery).
3333
The [conftest.py](test/conftest.py) file is sort of a setup file that can be used to create additional configurations/hooks
3434
([small example](https://github.com/tbmalt/tbmalt/blob/main/tests/conftest.py)) and setup code (fixtures) for all tests.
3535

36-
The [requirements-tests.txt](test/requirements-tests.txt) file is not required by pytest but tox for setting up
37-
the test environment as specified in tox's config file [tox.ini](tox.ini). Furthermore, to run pytest from tox, the `commands`
38-
section must be given. Here, additional options for the code coverage report from the `pytest-cov` plugin are given.
36+
The test environment for pytest is setup with the `setup.cfg` and/or `pyproject.toml` file. `tox` needs extra configuration
37+
which can be found in the *deps* section of [tox.ini](tox.ini). Some projects also use a `requirements-tests.txt` file that lists
38+
all test dependencies and is also given in the *deps* section with `deps = -rrequirements-tests.txt`.
39+
Furthermore, to run pytest from tox, the `commands` section must be given. Here, additional options for the code coverage report
40+
from the `pytest-cov` plugin are given.
3941

4042
<br>
4143

0 commit comments

Comments
 (0)