Commit b3f70611 authored by Emanuele Aina's avatar Emanuele Aina

README: Update testing instructions

Point people to the `unittest` step in the `Dockerfile` and how to use
it to run the test suite.
Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent 7d0d703a
Pipeline #3074 passed with stage
in 1 minute and 53 seconds
......@@ -102,11 +102,15 @@ config.yaml file values, the mattermost and email notifications too.
### Unit tests
Launch `pytest` (or `pytest-3` if installing it from Debian) from the project
root or from the `tests/` directory:
The Dockerfile ships a `unittest` step for generating images with all the test
dependencies, including a full local postgres instance for functional testing.
Launch `pytest` from the project root or from the `tests/` directory to run
the automated tests:
```
$ pytest -ra
$ docker build -t qa-report-app-unittest --target unittest .
$ docker run -t --user $(id -u):$(id -g) -v $(pwd):/app -w /app qa-report-app-unittest pytest-3
```
### TestJob object
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment