mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-21 03:33:52 +01:00
Add instruction for running unit tests in parallel (#13928)
This commit is contained in:
parent
8ab16a92ed
commit
5c429b86b4
2 changed files with 7 additions and 0 deletions
1
changelog.d/13928.doc
Normal file
1
changelog.d/13928.doc
Normal file
|
@ -0,0 +1 @@
|
|||
Add instruction to contributing guide for running unit tests in parallel. Contributed by @ashfame.
|
|
@ -167,6 +167,12 @@ was broken. They are slower than the linters but will typically catch more error
|
|||
poetry run trial tests
|
||||
```
|
||||
|
||||
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:
|
||||
|
||||
```sh
|
||||
poetry run trial -j4 tests
|
||||
```
|
||||
|
||||
If you wish to only run *some* unit tests, you may specify
|
||||
another module instead of `tests` - or a test class or a method:
|
||||
|
||||
|
|
Loading…
Reference in a new issue