Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
e21c3473
Unverified
Commit
e21c3473
authored
3 years ago
by
Eric Eastwood
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Document how to see logger output when running the twisted tests (#10148)
parent
e6245e6d
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CONTRIBUTING.md
+8
-1
8 additions, 1 deletion
CONTRIBUTING.md
README.rst
+17
-12
17 additions, 12 deletions
README.rst
changelog.d/10148.misc
+1
-0
1 addition, 0 deletions
changelog.d/10148.misc
with
26 additions
and
13 deletions
CONTRIBUTING.md
+
8
−
1
View file @
e21c3473
...
...
@@ -173,12 +173,19 @@ source ./env/bin/activate
trial tests.rest.admin.test_room tests.handlers.test_admin.ExfiltrateData.test_invite
```
If your tests fail, you may wish to look at the logs:
If your tests fail, you may wish to look at the logs
(the default log level is
`ERROR`
)
:
```
sh
less _trial_temp/test.log
```
To increase the log level for the tests, set
`SYNAPSE_TEST_LOG_LEVEL`
:
```
sh
SYNAPSE_TEST_LOG_LEVEL
=
DEBUG trial tests
```
## Run the integration tests.
The integration tests are a more comprehensive suite of tests. They
...
...
This diff is collapsed.
Click to expand it.
README.rst
+
17
−
12
View file @
e21c3473
...
...
@@ -293,18 +293,6 @@ try installing the failing modules individually::
pip install -e "module-name"
Once this is done, you may wish to run Synapse's unit tests to
check that everything is installed correctly::
python -m twisted.trial tests
This should end with a 'PASSED' result (note that exact numbers will
differ)::
Ran 1337 tests in 716.064s
PASSED (skips=15, successes=1322)
We recommend using the demo which starts 3 federated instances running on ports `8080` - `8082`
./demo/start.sh
...
...
@@ -324,6 +312,23 @@ If you just want to start a single instance of the app and run it directly::
python -m synapse.app.homeserver --config-path homeserver.yaml
Running the unit tests
======================
After getting up and running, you may wish to run Synapse's unit tests to
check that everything is installed correctly::
trial tests
This should end with a 'PASSED' result (note that exact numbers will
differ)::
Ran 1337 tests in 716.064s
PASSED (skips=15, successes=1322)
For more tips on running the unit tests, like running a specific test or
to see the logging output, see the `CONTRIBUTING doc <CONTRIBUTING.md#run-the-unit-tests>`_.
Running the Integration Tests
...
...
This diff is collapsed.
Click to expand it.
changelog.d/10148.misc
0 → 100644
+
1
−
0
View file @
e21c3473
Document `SYNAPSE_TEST_LOG_LEVEL` to see the logger output when running tests.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment