February 2022
Intermediate to advanced
274 pages
6h 28m
English
In addition to using coverage to determine if our test suite is hitting every line of our application code. Let’s add our test directory to the coverage report:
| | $ pytest --cov=cards --cov=ch7 ch7 |
| | =========================== test session starts ============================ |
| | collected 27 items |
| | |
| | ...actual test run omitted... |
| | |
| | ---------- coverage: platform darwin, python 3.x.y ----------- |
| | Name Stmts Miss Cover |
| | ------------------------------------------------------ |
| | cards_proj/src/cards/__init__.py 3 0 100% |
| | cards_proj/src/cards/api.py 71 3 96% |
| | cards_proj/src/cards/cli.py 71 39 45% |
| | cards_proj/src/cards/db.py 23 0 100% |
| | ch7/conftest.py 22 0 100% |
| | ch7/test_add.py 31 0 100% |
| | ch7/test_config.py ... |
Read now
Unlock full access