Testing Strategy
How we test our back end
Last updated
Was this helpful?
How we test our back end
Last updated
Was this helpful?
When a PR is submitted, a series of tests will be run with Github actions. It is fine to just submit your PR and let the tests run on Github. However, if the tests fail, you may need to run the tests locally to investigate what's going on, then either fix the tests, or fix your code.
To run Python tests, simply run at the top folder of the repository:
The pytest
command will run both the tests written with and those with the built-in python .
For Rapid Router and Portal, pytest
also runs . Check the section below for what you need to install to run it.
The Python tests in Portal also include some snapshot tests. Running pytest
will also automatically run the snapshot tests. When needed, the snapshot tests can be updated by running pytest --snapshot-update
.