Testing strategy
Keep tests cheap, deterministic, and layered.
Layers
- Unit tests: distribution functions, registry helpers, contracts.
- Integration tests: bundle builds for each backend; tiny MCMC smoke tests.
- API tests: S3 methods run without error and return expected shapes.
Kernel tests (minimum)
- d/p/q/r coherence for a small grid
- CDF monotonicity
- quantile inversion:
p(q(u)) $\\approx$ uon a grid - support constraints
Website tests (optional but valuable)
- internal link graph has no broken links
- workflows chain remains intact
Coverage
- Coverage report (HTML): see Coverage
- Coverage map (by feature area): Coverage map
Prereqs
- Required packages and data for this page are listed in the setup chunks above.
Outputs
- This page renders model fits, diagnostics, and summary artifacts generated by package APIs.
Interpretation
- Canonical concept page: Spec And Contracts
- Treat this page as an application/example view and use the canonical page for core definitions.
Next
- Continue to the linked canonical concept page, then return for implementation-specific details.