forked from Github-Mirrors/canaille
doc: coverage instructions
This commit is contained in:
parent
6e9f1ac0ad
commit
b213610903
1 changed files with 3 additions and 2 deletions
|
@ -113,10 +113,11 @@ Unit tests
|
||||||
To run the tests, you just can run `poetry run pytest` and/or `tox` to test all the supported python environments.
|
To run the tests, you just can run `poetry run pytest` and/or `tox` to test all the supported python environments.
|
||||||
Everything must be green before patches get merged.
|
Everything must be green before patches get merged.
|
||||||
|
|
||||||
To test a specific backend you can pass `--backend memory` or `--backend ldap` to pytest and tox.
|
To test a specific backend you can pass ``--backend memory`` or ``--backend ldap`` to pytest and tox.
|
||||||
|
|
||||||
The test coverage is 100%, patches won't be accepted if not entirely covered. You can check the
|
The test coverage is 100%, patches won't be accepted if not entirely covered. You can check the
|
||||||
test coverage with ``tox -e coverage``.
|
test coverage with ``poetry run pytest --cov --cov-report=html`` or ``tox -e coverage -- --cov-report=html``.
|
||||||
|
You can check the HTML coverage report in the newly created `htmlcov` directory.
|
||||||
|
|
||||||
Code style
|
Code style
|
||||||
----------
|
----------
|
||||||
|
|
Loading…
Reference in a new issue