forked from nf-core/modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add nf-test to gatk4/bedtointervallist - nf-core#3936 (nf-core#5251)
Co-authored-by: LE BARS Victor <Victor@ar155065.univ-rennes1.fr>
- Loading branch information
1 parent
322fa94
commit 8bdb60d
Showing
7 changed files
with
75 additions
and
33 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
modules/nf-core/gatk4/bedtointervallist/tests/main.nf.test
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
nextflow_process { | ||
|
||
name "Test Process GATK4_BEDTOINTERVALLIST" | ||
script "../main.nf" | ||
process "GATK4_BEDTOINTERVALLIST" | ||
|
||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "gatk4" | ||
tag "gatk4/bedtointervallist" | ||
|
||
test("test_gatk4_bedtointervallist") { | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ [ id:'test' ], // meta map | ||
[file(params.modules_testdata_base_path + | ||
'genomics/sarscov2/genome/bed/test.bed', checkIfExists: true) ] | ||
] | ||
input[1] = [ [ id:'dict' ], // meta map | ||
[file(params.modules_testdata_base_path + | ||
'genomics/sarscov2/genome/genome.dict', checkIfExists: true) ] | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
} |
35 changes: 35 additions & 0 deletions
35
modules/nf-core/gatk4/bedtointervallist/tests/main.nf.test.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
gatk4/bedtointervallist: | ||
- "modules/nf-core/gatk4/bedtointervallist/**" |
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 was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
tests/modules/nf-core/gatk4/bedtointervallist/nextflow.config
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.