Running Tests
Always have the --keepdb
option in PyCharm¶
- In PyCharm click the green triangle beside a test
Running tests in terminal¶
- -k flag: match test name patterns
Code coverage¶
pip install coverage
# replace `python` with `coverage run`
coverage run --branch manage.py test
coverage html
Last update:
2023-04-24