Skip to content

Commit

Permalink
Merge pull request nf-core#1243 from adamrtalbot/nf-test_multiqc_cust…
Browse files Browse the repository at this point in the history
…om_biotype

nf-test for module MULTIQC_CUSTOM_BIOTYPE
  • Loading branch information
maxulysse authored Mar 8, 2024
2 parents 417d0d1 + 9f5ea92 commit 45239cc
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 1 deletion.
32 changes: 32 additions & 0 deletions modules/local/multiqc_custom_biotype/tests/main.nf.test
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 modules/local/multiqc_custom_biotype/tests/main.nf.test.snap
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"
}
}
2 changes: 1 addition & 1 deletion tests/nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ params {
modules_testdata_base_path = 's3://ngi-igenomes/testdata/nf-core/modules/'

// Base directory for nf-core/rnaseq test data
pipelines_testdata_base_path = 's3://ngi-igenomes/testdata/nf-core/pipelines/rnaseq/3.15'
pipelines_testdata_base_path = 's3://ngi-igenomes/testdata/nf-core/pipelines/rnaseq/3.15/'

// for hisat2
hisat2_build_memory = '3.GB'
Expand Down

0 comments on commit 45239cc

Please sign in to comment.