/
main.nf.test
41 lines (38 loc) · 1.48 KB
/
main.nf.test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
nextflow_process {
name "Test Process BCLCONVERT"
script "../main.nf"
process "BCLCONVERT"
config "./nextflow.config"
tag "bclconvert"
tag "modules"
tag "modules_nfcore"
test("homo sapiens illumina [bcl]") {
when {
process {
//TODO use new test dataset when available, see https://github.com/nf-core/test-datasets/issues/996
"""
input[0] = [
[ id: 'test', lane:1 ],
file(params.test_data['homo_sapiens']['illumina']['test_flowcell_samplesheet'], checkIfExists: true),
file(params.test_data['homo_sapiens']['illumina']['test_flowcell'], checkIfExists: true)
]
"""
}
}
then {
assertAll(
{ assert process.success },
{ assert snapshot(
process.out.reports,
process.out.versions,
process.out.fastq,
file(process.out.logs.get(0).get(1)).list().sort(),
process.out.interop.get(0).get(1).findAll { file(it).name != "IndexMetricsOut.bin" },
).match()
},
{ assert process.out.undetermined.get(0).get(1) ==~ ".*/Undetermined_S0_L001_R1_001.fastq.gz"},
{ assert file(process.out.interop.get(0).get(1).find { file(it).name == "IndexMetricsOut.bin" }).exists() }
)
}
}
}