-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add selective running of tests - Users can use `--run <test name>` to run _only_ a single test from the set. - If left null, all tests are ran. - Can be used to test a single procedure without other tasks (if necessary), which will be useful when a single operation needs to be tested. - Uses string matching syntax and attaches `NF_CANARY:` to task variable. This isn't the best way but it works quickly now. Misc: - Update tests to include output paths - Isolate tests within subworkflow more precise scoping. --------- Co-authored-by: Adam Talbot
- Loading branch information
1 parent
ca5f6e4
commit 90b263b
Showing
25 changed files
with
291 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,5 @@ testing* | |
*.pyc | ||
test-datasets/ | ||
.nf-test/ | ||
test.tap | ||
test.tap | ||
.nf-test.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
params { | ||
skip = '' | ||
run = null | ||
outdir = null | ||
remoteFile = null | ||
} | ||
|
||
process { | ||
container = "docker.io/library/ubuntu:23.10" | ||
errorStrategy = "finish" | ||
when = { !params.skip.split(',').any{ it.toUpperCase().contains(task.process) } } | ||
when = { | ||
( params.run ? params.run.split(',').any{ "NF_CANARY:${it.toUpperCase()}".contains(task.process) } : true ) && | ||
(!params.skip.split(',').any{ "NF_CANARY:${it.toUpperCase()}".contains(task.process) } ) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.