Closed tovrstra closed 5 months ago
This pull request optimizes the test suite by categorizing tests into fast and slow groups, refactoring some slow tests into smaller, parameterized ones, and updating the CI workflow to handle these changes. Additionally, the contributing guide has been updated to reflect the new testing strategy.
Files | Changes |
---|---|
iodata/test/test_fchk.py iodata/test/test_wfx.py iodata/test/test_wfn.py iodata/test/test_molekel.py |
Refactored multiple individual test functions into parameterized tests using pytest.mark.parametrize and marked specific tests as slow using pytest.mark.slow. |
.github/workflows/pytest.yaml .deepsource.toml |
Updated CI workflow to run fast tests with coverage analysis on Linux and upload the coverage report to Deepsource. Enabled test-coverage analyzer in Deepsource configuration. |
Here's the code health analysis summary for commits 286d95f..ac34301
. View details on DeepSource ↗.
Analyzer | Status | Summary | Link |
---|---|---|---|
Test coverage | ⚠️ Artifact not reported | Timed out: Artifact was never reported | View Check ↗ |
Shell | ✅ Success | View Check ↗ | |
Python | ✅ Success | View Check ↗ |
💡 If you’re a repository administrator, you can configure the quality gates from the settings.
Thanks for checking. Going in...
See #313 for the overview.
pytest.mark.paramettrize
.CODECOV_TOKEN
andDEEPSOURCE_DSN
.Summary by Sourcery
This pull request optimizes test coverage analysis by splitting tests into 'slow' and 'fast' categories, using DeepSource for coverage analysis of fast tests, and updating the CI workflow to handle these changes. Additionally, it refactors some slow tests into faster, parameterized tests and updates the contributing guide.
pytest.mark.parametrize
.pytest.mark.parametrize
for better organization and performance.pytest.mark.slow
to differentiate them from fast tests.