diff --git a/modules/local/multiqc_custom_biotype/tests/main.nf.test b/modules/local/multiqc_custom_biotype/tests/main.nf.test new file mode 100644 index 000000000..216f73336 --- /dev/null +++ b/modules/local/multiqc_custom_biotype/tests/main.nf.test @@ -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()} + ) + } + + } + +} diff --git a/modules/local/multiqc_custom_biotype/tests/main.nf.test.snap b/modules/local/multiqc_custom_biotype/tests/main.nf.test.snap new file mode 100644 index 000000000..ae559097b --- /dev/null +++ b/modules/local/multiqc_custom_biotype/tests/main.nf.test.snap @@ -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" + } +} \ No newline at end of file diff --git a/tests/nextflow.config b/tests/nextflow.config index 89fefa4f3..6bf8f2929 100644 --- a/tests/nextflow.config +++ b/tests/nextflow.config @@ -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'