Skip to content

Commit f44c8fd

Browse files
committed
Add test to verify no vcf/vcf_index output
1 parent a8ea068 commit f44c8fd

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

modules/nf-core/paraphase/tests/main.nf.test

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,43 @@ nextflow_process {
100100
}
101101
}
102102

103+
test("homo_sapiens - [ bam, bai ], no_vcf") {
104+
105+
config "./nextflow.no_vcf.config"
106+
107+
when {
108+
process {
109+
"""
110+
input[0] = [
111+
[ id:'test', single_end:true ], // meta map
112+
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/pacbio/bam/test.sorted.bam', checkIfExists: true),
113+
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/pacbio/bam/test.sorted.bam.bai', checkIfExists: true),
114+
]
115+
input[1] = TABIX_BGZIP.out.output
116+
input[2] = [
117+
[ id:'test_config' ],
118+
file(params.modules_testdata_base_path + 'generic/config/paraphase_config.yaml', checkIfExists: true),
119+
]
120+
"""
121+
}
122+
}
123+
124+
then {
125+
assertAll(
126+
{ assert process.success },
127+
{ assert process.out.vcf?.isEmpty() },
128+
{ assert process.out.vcf_index?.isEmpty() },
129+
{ assert snapshot(
130+
file(process.out.json.get(0).get(1)).readLines()[0..28],
131+
bam(process.out.bam.get(0).get(1)).getReadsMD5(),
132+
file(process.out.bai.get(0).get(1)).name,
133+
process.out.versions
134+
).match()
135+
}
136+
)
137+
}
138+
}
139+
103140
test("homo_sapiens - [ bam, bai ], config - csi_index") {
104141

105142
config "./nextflow.csi_index.config"

0 commit comments

Comments
 (0)