summary refs log tree commit diff
path: root/develop/development
diff options
context:
space:
mode:
authorbabolivier <babolivier@users.noreply.github.com>2022-09-28 11:15:21 +0000
committerbabolivier <babolivier@users.noreply.github.com>2022-09-28 11:15:21 +0000
commite0ec00851754cd1096886e7c2c67e4aa6779fb2d (patch)
tree7500bb8d6c908bbcbf1a43c96ba52f788fc88aaf /develop/development
parentdeploy: 35e9d6a6161c05db491a36e8c194f9cb6b0af073 (diff)
downloadsynapse-e0ec00851754cd1096886e7c2c67e4aa6779fb2d.tar.xz
deploy: 5c429b86b4cf1d2ccf81339844599c85653521df
Diffstat (limited to 'develop/development')
-rw-r--r--develop/development/contributing_guide.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/develop/development/contributing_guide.html b/develop/development/contributing_guide.html
index 84356e5152..8a4fb5b6e9 100644
--- a/develop/development/contributing_guide.html
+++ b/develop/development/contributing_guide.html
@@ -255,6 +255,9 @@ Make sure that you have saved all your files.</p>
 was broken. They are slower than the linters but will typically catch more errors.</p>
 <pre><code class="language-sh">poetry run trial tests
 </code></pre>
+<p>You can run unit tests in parallel by specifying <code>-jX</code> argument to <code>trial</code> where <code>X</code> is the number of parallel runners you want. To use 4 cpu cores, you would run them like:</p>
+<pre><code class="language-sh">poetry run trial -j4 tests
+</code></pre>
 <p>If you wish to only run <em>some</em> unit tests, you may specify
 another module instead of <code>tests</code> - or a test class or a method:</p>
 <pre><code class="language-sh">poetry run trial tests.rest.admin.test_room tests.handlers.test_admin.ExfiltrateData.test_invite