Run Tests
Run the project test suite and analyze results.
Steps
- •
Run tests with HTML report:
codedocker compose -f docker-compose.yml -f docker-compose.dev.yml exec app pytest --html=tests/report.html --self-contained-html -v
- •
If tests fail, analyze failures and provide:
- •Which tests failed and why
- •Suggested fixes for each failure
- •Whether the failure is in test code or application code
- •
If
$ARGUMENTSis provided, run only matching tests:codedocker compose -f docker-compose.yml -f docker-compose.dev.yml exec app pytest -k "$ARGUMENTS" -v
Test Categories
- •
make test- All tests - •
make test-report- All tests + HTML report - •
make test-cov- All tests + coverage report - •
make test-security- Security tests only