# Testing and Coverage
pytest as our test runner.
It also supports
Django unittest classes
You can check tests code in django_app/tests
# run tests $ pytest django_app/tests/unittest --numprocesses 2
# Tests Structure
django_app ├── conftest.py ├── tests │ ├── integration # contains integration tests │ └── unittest # contains unit tests
# Integration Tests
Even you can use
That is why we need
Integration Tests in some cases.
In Django community, people usually choose
selenium, but in SaaS Hammer, I recommend people to use
Playwrightis very fast, and supports multiple programming languages.
parallel testing, which means, we can launch
parallel testingin the CI for shorter execution time.
Playwrighthas clean API, strong team and active community.
SaaS Hammeralready import and config
Playwrightas our integration testing solution.
pytest-cov to help us collect coverage data and generate coverage report.