-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy pathmain.nf.test
More file actions
59 lines (47 loc) · 1.31 KB
/
main.nf.test
File metadata and controls
59 lines (47 loc) · 1.31 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
nextflow_process {
name "Test Process HAPLOGREP3_CLASSIFY"
script "../main.nf"
process "HAPLOGREP3_CLASSIFY"
tag "modules"
tag "modules_nfcore"
tag "haplogrep3"
tag "haplogrep3/classify"
test("test-haplogrep3-classify") {
config './nextflow.config'
when {
process {
"""
input[0] = [
[ id:'test', single_end:false ], // meta map
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/vcf/NA12878_chrM.vcf.gz', checkIfExists: true)
]
"""
}
}
then {
assertAll(
{ assert process.success },
{ assert snapshot(process.out).match() }
)
}
}
test("test-haplogrep3-classify-stub") {
options '-stub'
when {
process {
"""
input[0] = [
[ id:'test', single_end:false ], // meta map
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/vcf/NA12878_chrM.vcf.gz', checkIfExists: true)
]
"""
}
}
then {
assertAll(
{ assert process.success },
{ assert snapshot(process.out).match() }
)
}
}
}