forked from nf-core/rnaseq
-
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.
Merge pull request nf-core#1243 from adamrtalbot/nf-test_multiqc_cust…
…om_biotype nf-test for module MULTIQC_CUSTOM_BIOTYPE
- Loading branch information
Showing
3 changed files
with
74 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
nextflow_process { | ||
|
||
name "Test Process MULTIQC_CUSTOM_BIOTYPE" | ||
script "../main.nf" | ||
process "MULTIQC_CUSTOM_BIOTYPE" | ||
|
||
test("test sarscov2 count data succesfully completes") { | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = Channel.of( | ||
[ | ||
[ id: 'test' ], | ||
file(params.pipelines_testdata_base_path + 'multiqc_custom_biotype/test.featureCounts.txt', checkIfExists: true) | ||
] | ||
) | ||
input[1] = file(params.pipelines_testdata_base_path + 'multiqc_custom_biotype/biotypes_header.txt', checkIfExists: true) | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success}, | ||
{ assert snapshot(process.out).match()} | ||
) | ||
} | ||
|
||
} | ||
|
||
} |
41 changes: 41 additions & 0 deletions
41
modules/local/multiqc_custom_biotype/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,41 @@ | ||
{ | ||
"test sarscov2 count data succesfully completes": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
[ | ||
"test.biotype_counts_mqc.tsv:md5,d996f27aeec64370cade26717aa22e1e", | ||
"test.biotype_counts_rrna_mqc.tsv:md5,405217e65a76b104b00bb41f6bf10a92" | ||
] | ||
] | ||
], | ||
"1": [ | ||
"versions.yml:md5,575b3b4c8a8a6e508c8ceeca41331b6b" | ||
], | ||
"tsv": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
[ | ||
"test.biotype_counts_mqc.tsv:md5,d996f27aeec64370cade26717aa22e1e", | ||
"test.biotype_counts_rrna_mqc.tsv:md5,405217e65a76b104b00bb41f6bf10a92" | ||
] | ||
] | ||
], | ||
"versions": [ | ||
"versions.yml:md5,575b3b4c8a8a6e508c8ceeca41331b6b" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "24.01.0" | ||
}, | ||
"timestamp": "2024-03-08T09:38:04.260609" | ||
} | ||
} |
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