Overview of nf-test testing capabilities
mainnf-test is a testing framework designed for Nextflow pipelines. It uses a DSL similar to Nextflow to describe expected behavior using when and then blocks.
Key features include:
- Unit Testing: Test various levels of your pipeline, including the entire pipeline, specific processes, or custom functions.
- Snapshot Testing: Automatically capture snapshots of output channels or objects to compare against reference files, helping to detect regressions.
- Extensibility: Supports third-party libraries (e.g., JAR files), Groovy functions, and a plugin system to add custom assertion methods (e.g., FASTA file support).
- Boilerplate Generation: Provides commands to generate test code scaffolding.