-
Notifications
You must be signed in to change notification settings - Fork 695
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added nf-test for gatk4/gatherbqsrreports
- Loading branch information
Showing
6 changed files
with
132 additions
and
54 deletions.
There are no files selected for viewing
60 changes: 60 additions & 0 deletions
60
modules/nf-core/gatk4/gatherbqsrreports/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,60 @@ | ||
|
||
nextflow_process { | ||
|
||
name "Test Process GATK4_GATHERBQSRREPORTS" | ||
script "../main.nf" | ||
process "GATK4_GATHERBQSRREPORTS" | ||
|
||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "gatk4" | ||
tag "gatk4/gatherbqsrreports" | ||
|
||
test("test-gatk4-gatherbqsrreports") { | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test', single_end:false ], // meta map | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/gatk/test.baserecalibrator.table', checkIfExists: true) | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
} | ||
|
||
test("test-gatk4-gatherbqsrreports-multiple") { | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test', single_end:false ], // meta map | ||
[ | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/gatk/test.baserecalibrator.table', checkIfExists: true), | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/gatk/test2.baserecalibrator.table', checkIfExists: true) | ||
] | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
} | ||
|
||
} |
72 changes: 72 additions & 0 deletions
72
modules/nf-core/gatk4/gatherbqsrreports/tests/main.nf.test.snap
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,72 @@ | ||
{ | ||
"test-gatk4-gatherbqsrreports-multiple": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
[ | ||
{ | ||
"id": "test", | ||
"single_end": false | ||
}, | ||
"test.table:md5,0c1257eececf95db8ca378272d0f21f9" | ||
] | ||
], | ||
"1": [ | ||
"versions.yml:md5,413fc0014d5dc41ab67d65f59f61a4a0" | ||
], | ||
"table": [ | ||
[ | ||
{ | ||
"id": "test", | ||
"single_end": false | ||
}, | ||
"test.table:md5,0c1257eececf95db8ca378272d0f21f9" | ||
] | ||
], | ||
"versions": [ | ||
"versions.yml:md5,413fc0014d5dc41ab67d65f59f61a4a0" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "24.04.4" | ||
}, | ||
"timestamp": "2024-08-26T12:22:34.490694" | ||
}, | ||
"test-gatk4-gatherbqsrreports": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
[ | ||
{ | ||
"id": "test", | ||
"single_end": false | ||
}, | ||
"test.table:md5,9603b69fdc3b5090de2e0dd78bfcc4bf" | ||
] | ||
], | ||
"1": [ | ||
"versions.yml:md5,413fc0014d5dc41ab67d65f59f61a4a0" | ||
], | ||
"table": [ | ||
[ | ||
{ | ||
"id": "test", | ||
"single_end": false | ||
}, | ||
"test.table:md5,9603b69fdc3b5090de2e0dd78bfcc4bf" | ||
] | ||
], | ||
"versions": [ | ||
"versions.yml:md5,413fc0014d5dc41ab67d65f59f61a4a0" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "24.04.4" | ||
}, | ||
"timestamp": "2024-08-26T12:22:10.552951" | ||
} | ||
} |
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/gatherbqsrreports/nextflow.config
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.