mirror of
https://github.com/element-hq/synapse
synced 2024-08-19 08:00:53 +00:00
deploy: 15cdcf8f30
This commit is contained in:
parent
13da10fdc2
commit
2103171774
4 changed files with 2 additions and 28 deletions
|
@ -330,19 +330,6 @@ export SYNAPSE_POSTGRES_USER=postgres
|
|||
export SYNAPSE_POSTGRES_PASSWORD=mydevenvpassword
|
||||
trial
|
||||
</code></pre>
|
||||
<h4 id="prebuilt-container"><a class="header" href="#prebuilt-container">Prebuilt container</a></h4>
|
||||
<p>Since configuring PostgreSQL can be fiddly, we can make use of a pre-made
|
||||
Docker container to set up PostgreSQL and run our tests for us. To do so, run</p>
|
||||
<pre><code class="language-shell">scripts-dev/test_postgresql.sh
|
||||
</code></pre>
|
||||
<p>Any extra arguments to the script will be passed to <code>tox</code> and then to <code>trial</code>,
|
||||
so we can run a specific test in this container with e.g.</p>
|
||||
<pre><code class="language-shell">scripts-dev/test_postgresql.sh tests.replication.test_sharded_event_persister.EventPersisterShardTestCase
|
||||
</code></pre>
|
||||
<p>The container creates a folder in your Synapse checkout called
|
||||
<code>.tox-pg-container</code> and uses this as a tox environment. The output of any
|
||||
<code>trial</code> runs goes into <code>_trial_temp</code> in your synapse source directory — the same
|
||||
as running <code>trial</code> directly on your host machine.</p>
|
||||
<h2 id="run-the-integration-tests-a-hrefhttpsgithubcommatrix-orgsytestsytesta"><a class="header" href="#run-the-integration-tests-a-hrefhttpsgithubcommatrix-orgsytestsytesta">Run the integration tests (<a href="https://github.com/matrix-org/sytest">Sytest</a>).</a></h2>
|
||||
<p>The integration tests are a more comprehensive suite of tests. They
|
||||
run a full version of Synapse, including your changes, to check if
|
||||
|
|
|
@ -13218,19 +13218,6 @@ export SYNAPSE_POSTGRES_USER=postgres
|
|||
export SYNAPSE_POSTGRES_PASSWORD=mydevenvpassword
|
||||
trial
|
||||
</code></pre>
|
||||
<h4 id="prebuilt-container"><a class="header" href="#prebuilt-container">Prebuilt container</a></h4>
|
||||
<p>Since configuring PostgreSQL can be fiddly, we can make use of a pre-made
|
||||
Docker container to set up PostgreSQL and run our tests for us. To do so, run</p>
|
||||
<pre><code class="language-shell">scripts-dev/test_postgresql.sh
|
||||
</code></pre>
|
||||
<p>Any extra arguments to the script will be passed to <code>tox</code> and then to <code>trial</code>,
|
||||
so we can run a specific test in this container with e.g.</p>
|
||||
<pre><code class="language-shell">scripts-dev/test_postgresql.sh tests.replication.test_sharded_event_persister.EventPersisterShardTestCase
|
||||
</code></pre>
|
||||
<p>The container creates a folder in your Synapse checkout called
|
||||
<code>.tox-pg-container</code> and uses this as a tox environment. The output of any
|
||||
<code>trial</code> runs goes into <code>_trial_temp</code> in your synapse source directory — the same
|
||||
as running <code>trial</code> directly on your host machine.</p>
|
||||
<h2 id="run-the-integration-tests-a-hrefhttpsgithubcommatrix-orgsytestsytesta"><a class="header" href="#run-the-integration-tests-a-hrefhttpsgithubcommatrix-orgsytestsytesta">Run the integration tests (<a href="https://github.com/matrix-org/sytest">Sytest</a>).</a></h2>
|
||||
<p>The integration tests are a more comprehensive suite of tests. They
|
||||
run a full version of Synapse, including your changes, to check if
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue