ΒΆ Testing Standards
- Testing is strongly encouraged for all DataSHIELD packages. Recommended framework: testthat.
- All exported functions are expected to have associated unit tests. Tests should cover: expected inputs, invalid inputs, edge cases, disclosure control behaviour, error handling.
- Minimum test coverage of 75%. Coverage tools:
covr GitHub Actions coverage workflows.
- Tests that require network access, depend on external services, are computationally intensive, should use:
skip_on_cran() to avoid CRAN failures.
- CI requirements
- all tests must pass in CI,
- no PR merged with failing checks.
- Testing data sets should follow disclosure Control and Security Policy