Skip to content

Commit a3f5a53

Browse files
Small fixes to contributing guide
1 parent f199b77 commit a3f5a53

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

CONTRIBUTING.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,12 @@ runs](#skipping-ci-runs)).
343343
3. We split the tests based on their duration into groups and run them in parallel.
344344

345345
For that we use [pytest-split](https://jerry-git.github.io/pytest-split)
346-
to first store the duration of all tests with `pytest --store-durations pytest --slow-tests`
346+
to first store the duration of all tests with
347+
`tox -e tests -- --store-durations --slow-tests`
347348
in a `.test_durations` file.
349+
350+
Alternatively, we case use pytest directly
351+
`pytest --store-durations --slow-tests`.
348352

349353
> **Note** This does not have to be done each time a new test or test case
350354
> is added. For new tests and test cases pytes-split assumes
@@ -359,11 +363,14 @@ runs](#skipping-ci-runs)).
359363
Then we can have as many splits as we want:
360364

361365
```shell
362-
pytest --splits 3 --group 1
363-
pytest --splits 3 --group 2
364-
pytest --splits 3 --group 3
366+
tox -e tests -- --splits 3 --group 1
367+
tox -e tests -- --splits 3 --group 2
368+
tox -e tests -- --splits 3 --group 3
365369
```
366370

371+
Alternatively, we case use pytest directly
372+
`pytest --splits 3 ---group 1`.
373+
367374
Each one of these commands should be run in a separate shell/job
368375
to run the test groups in parallel and decrease the total runtime.
369376

0 commit comments

Comments
 (0)