
Articles
Learn with a small package
- 1. Generate and run your first test
Try a small package, generate an ordinary test, see it pass, and catch a sample-ordering bug.
- 2. Test the same behavior in memory and HDF5
Share sample-alignment assertions across ordinary and long tests, then select and record cases by a stable name.
- 3. Record, replay and fix a failure
Introduce a sample-ordering bug, save a failed named case, reproduce the same failure and verify the correction.
Recipes and details
- Use a checked data file in a test
Create a small fixture, check its identity, and share package data between ordinary and long tests.
- CI, reports and existing test workflows
Require named cases in CI, compare saved reports, check generated files, and adapt an existing roxygen2 or roxytest workflow.
- Reduce a failure while keeping sample pairs
Find a smaller paired SummarizedExperiment that retains a specific failure, then use it to test a correction.
- Reproduce two Bioconductor regressions
Reuse named tests for a zero-column matrix product and for missing values in a sparse matrix conversion from HDF5.