| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
Canonical non-regression tests are under tests/regression/.
Golden references are under tests/regression/reference/golden_references/.
Two tiers are used:
Solver-family markers are used across launcher regression variants:
Solver intercomparison tests use the intercomparison marker. They compare compact metrics produced by a [workflow].mode = "comparison" run, not figure files or full solver workspaces.
Current non-regression tests:
Notes:
Run all regression tests:
python -m pytest -m regression -q -n autoRun only fast tier:
python -m pytest tests/regression/fast -q -n autoRun only extensive tier:
python -m pytest tests/regression/extensive -q -n autoRun only fast tests:
python -m pytest -m "regression and fast" -q -n autoRun only extensive tests with marker:
python -m pytest -m "regression and extensive" -q -n autoRun only slow tests:
python -m pytest -m slow -q -n autoRun only NWT or MF6 launcher regressions:
python -m pytest -m "regression and nwt" -q -n auto
python -m pytest -m "regression and mf6" -q -n autoRun only solver intercomparisons:
python -m pytest -m "regression and intercomparison" -q -n auto
hmp test regression --fast --intercomparison -j 1Run one specific test:
python -m pytest tests/regression/fast/test_simulation_regression_fast_boussinesq_regression.py -q -n 1
python -m pytest tests/regression/fast/test_simulation_regression_fast_boussinesq_divide_regression.py -q -n 1
python -m pytest tests/regression/fast/test_simulation_regression_fast_mf6_regression.py -q -n 1
python -m pytest tests/regression/fast/test_simulation_regression_fast_nwt_regression.py -q -n 1
python -m pytest tests/regression/fast/intercomparison/test_solver_intercomparison_fast_regression.py -q -n 1
python -m pytest tests/regression/extensive/test_simulation_regression_extensive_mf6_regression.py -q -n 1
python -m pytest tests/regression/extensive/test_simulation_regression_extensive_nwt_regression.py -q -n 1Run via the hmp CLI:
hmp test regressionhmp test regression --extensivehmp test regression --fasthmp test regression --slowhmp test regression --listhmp test regression simulation_regression_fast_mf6 --fast --mf6 -j 1hmp test regression simulation_regression_fast_nwt --fast --nwt -j 1hmp test regression simulation_regression_extensive_mf6 --extensive --mf6 -j 1hmp test regression simulation_regression_extensive_nwt --extensive --nwt -j 1-n is provided by pytest-xdist and controls how many worker processes run tests in parallel.
Examples:
python -m pytest -m regression -q -n auto
python -m pytest -m fast -q -n 4
python -m pytest tests/regression/extensive/test_simulation_regression_extensive_nwt_regression.py -q -n 1-m accepts a boolean expression on test markers.
Operators:
Examples:
python -m pytest -m "regression and fast" -q
python -m pytest -m "regression and slow" -q
python -m pytest -m extensive -q
python -m pytest -m "regression and fast and mf6" -q
python -m pytest -m "regression and fast and intercomparison" -q
python -m pytest -m "regression and extensive and nwt" -q
python -m pytest -m "regression and not slow" -q
python -m pytest -m "(regression and fast) or slow" -qUpdate all golden references:
python -m pytest -m regression -q -n auto --update-goldensUpdate one golden file from one test:
python -m pytest tests/regression/fast/test_simulation_regression_fast_boussinesq_regression.py -q --update-goldens
python -m pytest tests/regression/fast/test_simulation_regression_fast_boussinesq_divide_regression.py -q --update-goldens
python -m pytest tests/regression/fast/test_simulation_regression_fast_mf6_regression.py -q --update-goldens
python -m pytest tests/regression/fast/test_simulation_regression_fast_nwt_regression.py -q --update-goldens
python -m pytest tests/regression/fast/intercomparison/test_solver_intercomparison_fast_regression.py -q --update-goldens
python -m pytest tests/regression/extensive/test_simulation_regression_extensive_mf6_regression.py -q --update-goldens
python -m pytest tests/regression/extensive/test_simulation_regression_extensive_nwt_regression.py -q --update-goldens| Back | FazBrowse Home | New Git URL |