Testing#

Planned Outline of a future page.

This page will cover

  • Running the suites: python -m pytest test/, python -m pytest harmolab/utils/quadrature/tests/, python -m pytest test/optim -v -s.

  • What each group of tests protects (golden values, physical invariants such as scale invariance and positive semi-definiteness of \(R\), CPU/GPU agreement, reduced-model exactness).

  • The legacy scripts excluded from collection (test/conftest.py), the golden test that still asserts the former fill_mode="mirror" values, and tests built on gmsh meshes, which change from run to run when gmsh uses several threads (see Numerical limits and conditioning).

  • Writing a new test: build the mesh inside the test, write files under tmp_path.