Spaces:
Runtime error

ArshVerma commited on
Commit
f27b882
Β·
1 Parent(s): 7ec8d4b

test: expand test suite to 150+ tests and 80%+ coverage

Browse files

- Added 30 parametrized scenario validation tests (97 total cases)
- Implemented shared fixtures in conftest.py with in-memory DB override
- Added persistence layer tests for SQLite and leaderboard logic
- Expanded grader tests with edge cases for line tolerance and penalties
- Added API error path and pagination tests
- Fixed logic bug in SecurityGrader keyword thresholding
- Configured pytest-cov with 80% coverage enforcement

9 files changed +454
Files changed (9)
pyproject.tomlAdded+15
pytest.iniAdded+6
requirements.txt+1
tests/conftest.pyAdded+44
tests/test_api.py+65
tests/test_database.pyAdded+65
tests/test_env.py+56
tests/test_graders.py+143
tests/test_scenarios.pyAdded+59