85 lines
2.6 KiB
Text
85 lines
2.6 KiB
Text
|
nextflow_process {
|
||
|
|
||
|
name "Test Process MULTIQC"
|
||
|
script "../main.nf"
|
||
|
process "MULTIQC"
|
||
|
|
||
|
tag "modules"
|
||
|
tag "modules_nfcore"
|
||
|
tag "multiqc"
|
||
|
|
||
|
test("sarscov2 single-end [fastqc]") {
|
||
|
|
||
|
when {
|
||
|
process {
|
||
|
"""
|
||
|
input[0] = Channel.of(file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fastqc/test_fastqc.zip', checkIfExists: true))
|
||
|
input[1] = []
|
||
|
input[2] = []
|
||
|
input[3] = []
|
||
|
"""
|
||
|
}
|
||
|
}
|
||
|
|
||
|
then {
|
||
|
assertAll(
|
||
|
{ assert process.success },
|
||
|
{ assert process.out.report[0] ==~ ".*/multiqc_report.html" },
|
||
|
{ assert process.out.data[0] ==~ ".*/multiqc_data" },
|
||
|
{ assert snapshot(process.out.versions).match("multiqc_versions_single") }
|
||
|
)
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
test("sarscov2 single-end [fastqc] [config]") {
|
||
|
|
||
|
when {
|
||
|
process {
|
||
|
"""
|
||
|
input[0] = Channel.of(file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fastqc/test_fastqc.zip', checkIfExists: true))
|
||
|
input[1] = Channel.of(file("https://github.com/nf-core/tools/raw/dev/nf_core/pipeline-template/assets/multiqc_config.yml", checkIfExists: true))
|
||
|
input[2] = []
|
||
|
input[3] = []
|
||
|
"""
|
||
|
}
|
||
|
}
|
||
|
|
||
|
then {
|
||
|
assertAll(
|
||
|
{ assert process.success },
|
||
|
{ assert process.out.report[0] ==~ ".*/multiqc_report.html" },
|
||
|
{ assert process.out.data[0] ==~ ".*/multiqc_data" },
|
||
|
{ assert snapshot(process.out.versions).match("multiqc_versions_config") }
|
||
|
)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
test("sarscov2 single-end [fastqc] - stub") {
|
||
|
|
||
|
options "-stub"
|
||
|
|
||
|
when {
|
||
|
process {
|
||
|
"""
|
||
|
input[0] = Channel.of(file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fastqc/test_fastqc.zip', checkIfExists: true))
|
||
|
input[1] = []
|
||
|
input[2] = []
|
||
|
input[3] = []
|
||
|
"""
|
||
|
}
|
||
|
}
|
||
|
|
||
|
then {
|
||
|
assertAll(
|
||
|
{ assert process.success },
|
||
|
{ assert snapshot(process.out.report.collect { file(it).getName() } +
|
||
|
process.out.data.collect { file(it).getName() } +
|
||
|
process.out.plots.collect { file(it).getName() } +
|
||
|
process.out.versions ).match("multiqc_stub") }
|
||
|
)
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|