unzhakov
|
8172ba2541
|
test: adapt existing suites to unconditional core, drop dead detector tests
|
2026-09-30 03:08:13 +03:00 |
|
unzhakov
|
687e05cbe2
|
style: reformat assertion blocks in test files
|
2026-09-29 13:06:22 +03:00 |
|
unzhakov
|
be3e288e0d
|
docs: update documentation files and fix linting issues
|
2026-07-07 13:32:48 +03:00 |
|
unzhakov
|
76d183b913
|
test: Phase 5 — advanced improvements
1. pytest-timeout (30s, thread-based) added to pyproject.toml
- Prevents hangs in CI
- timeout_method='thread' for clean cancellation
2. hypothesis added for property-based edge case discovery
- tests/common/test_hypothesis_tests.py: 5 tests
- Fermi: random Z, A, W — checks stability, monotonicity
- Phase space: random W0, W — checks threshold/endpoint properties
- Hypothesis already found real bugs:
* Fermi monotonicity fails for Z < 10 (expected — finite-size dominates)
* Phase space negative when W > W0 (test constrains W < W0)
3. pytest.mark.requires_ensdf marker added to TestPaceENSDFIntegration
- Replaces bare @pytest.mark.skipif with documented marker
- Allows running only ENSDF tests: pytest -m requires_ensdf
4. Updated test-migration-todo.md: Phase 5 complete
Final state: 256 tests passing (250 regular + 6 hypothesis + 6 skipped ENSDF)
|
2026-05-15 16:48:46 +03:00 |
|
unzhakov
|
c96fb6175a
|
test: add .gitkeep files and update TODO with phase 1-4 complete
- Add .gitkeep to tests/common/ and tests/integration/ directories
- Mark phases 1-4 as complete in test-migration-todo.md
- All migration work done: 251 tests passing
- Final structure:
- tests/common/ — 3 files (shared helpers)
- tests/physics/ — 10 files (physics behavior)
- tests/quality/ — 8 files (API contracts)
- tests/integration/ — 2 files (end-to-end)
|
2026-05-15 15:56:28 +03:00 |
|
unzhakov
|
4b08df3873
|
test: create new test architecture with shared property/API tests
- Add tests/common/ with parametrized property tests (positivity, shape, NaN, stability)
- Add tests/physics/ with unique physics behavior tests for 6 correction components
- Add tests/quality/ with API contract tests for 6 correction components
- Add pytest markers in pyproject.toml: property, physics, api, quality, integration
- New tests: 94 tests passing (physics + quality + common helpers)
- Old tests in tests/ root still present — migration in progress
- Total: 261 tests collected (230 old + 94 new - 63 duplicates removed)
The shared helpers eliminate 18 duplicate test patterns across correction
components. Each component now has:
- tests/physics/test_<name>.py — unique physics behavior
- tests/quality/test_api_<name>.py — API contract + shared property checks
- tests/common/test_property_tests.py — shared helpers (imported, not duplicated)
|
2026-05-15 15:04:52 +03:00 |
|