Test a Nextflow script by running it, verifying outputs, testing resume functionality, and comparing results with documentation...
Test a Nextflow example script and verify it matches the documentation.
IMPORTANT: This skill works with directories in two phases:
Initial phase - Start from repository root
mkdocs.yml, docs/, and .github/Execution phase - Change to the script's directory for running Nextflow
cd to the script's directory before running nextflow runAfter testing, return to repository root or use absolute paths for final documentation checks.
Identify the Script
params. definitions for testingFind Related Documentation
Run the Script
nextflow run [script.nf]Verify Outputs
Test with Resume
nextflow run [script.nf] -resumeTest with Parameters (if applicable)
Compare with Documentation
Provide a comprehensive test report:
# Test Report: [script.nf]
## Script Understanding
- Purpose: [what it does]
- Parameters: [list]
- Expected outputs: [list]
## Test Results
### Basic Run
ā Script executed successfully
ā Output files created: [list]
ā Console output as expected
### Resume Test
ā All processes cached
ā Work directory reused
### Parameter Tests
ā --param1 value: works correctly
[or issues found]
## Documentation Comparison
### Accurate
- Console output examples match
- File paths correct
- Command syntax verified
### Issues Found
- Line 123: Console output shows v25.04 but docs show v24.10
- Example missing --param flag
[or none]
## Recommendations
[Suggested documentation updates or script fixes]