Testing
Running the Test Suite
Run all tests:
pytest tests/
With coverage report:
pytest tests/ --cov=src/gasfir --cov-report=term-missing
Run a specific module:
pytest tests/test_kernels.py -v
Run only performance tests:
pytest tests/test_integration.py::TestPerformanceIntegration -v
Test Structure
File |
Contents |
|---|---|
|
High-level API smoke tests, error handling, performance benchmarks |
|
Unit tests for individual kernel functions |
|
Residual function construction and evaluation |
|
End-to-end workflows, consistency checks across methods |
|
Utility function unit tests |
CI Coverage
The GitLab CI pipeline runs the full test matrix (Python 3.8–3.12) on every
merge request and on every push to main. Coverage reports are published as
CI artefacts.