Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 5c429b8

Browse files
authoredSep 28, 2022
Add instruction for running unit tests in parallel (#13928)
1 parent 8ab16a9 commit 5c429b8

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
 

‎changelog.d/13928.doc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add instruction to contributing guide for running unit tests in parallel. Contributed by @ashfame.

‎docs/development/contributing_guide.md

+6
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,12 @@ was broken. They are slower than the linters but will typically catch more error
167167
poetry run trial tests
168168
```
169169

170+
You can run unit tests in parallel by specifying `-jX` argument to `trial` where `X` is the number of parallel runners you want. To use 4 cpu cores, you would run them like:
171+
172+
```sh
173+
poetry run trial -j4 tests
174+
```
175+
170176
If you wish to only run *some* unit tests, you may specify
171177
another module instead of `tests` - or a test class or a method:
172178

0 commit comments

Comments
 (0)
This repository has been archived.