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.
See ../shared/repo-conventions.md for directory mapping.
This skill works in two phases:
Return to repository root after testing for final documentation checks.
Identify the Script
params. definitions for testingFind Related Documentation
Run the Script
env -u CLAUDECODE NXF_AGENT_MODE=false nextflow run [script.nf] ā see Console Output Mode: without this override, Nextflow 26.04+ renders in agent mode and the captured output will not match what learners seeVerify Outputs
Test with Resume
env -u CLAUDECODE NXF_AGENT_MODE=false 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]