Skip to content

Commit 2516316

Browse files
committed
update versions assertion
1 parent 6e1498a commit 2516316

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

tests/test_humanpopgen.nf.test

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,10 @@ nextflow_pipeline {
134134
{ assert snapshot( stable_name_multiqc*.name ).match("multiqc") },
135135

136136
// Versions
137-
{ assert new File("$outputDir/pipeline_info/nf_core_eager_software_mqc_versions.yml").exists() },
137+
{ assert snapshot(
138+
// pipeline versions.yml file for multiqc from which Nextflow version is removed because we test pipelines on multiple Nextflow versions
139+
removeNextflowVersion("$outputDir/pipeline_info/nf_core_eager_software_mqc_versions.yml"),
140+
).match() },
138141

139142
)
140143
}

tests/test_microbial.nf.test

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,10 @@ nextflow_pipeline {
143143
{ assert snapshot( stable_name_multiqc*.name ).match("multiqc") },
144144

145145
// Versions
146-
{ assert new File("$outputDir/pipeline_info/nf_core_eager_software_mqc_versions.yml").exists() },
146+
{ assert snapshot(
147+
// pipeline versions.yml file for multiqc from which Nextflow version is removed because we test pipelines on multiple Nextflow versions
148+
removeNextflowVersion("$outputDir/pipeline_info/nf_core_eager_software_mqc_versions.yml"),
149+
).match() },
147150

148151
)
149152
}

tests/test_minimal.nf.test

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ nextflow_pipeline {
9292
{ assert snapshot( stable_name_multiqc*.name ).match("multiqc") },
9393

9494
// Versions
95-
{ assert new File("$outputDir/pipeline_info/nf_core_eager_software_mqc_versions.yml").exists() },
95+
{ assert snapshot(
96+
// pipeline versions.yml file for multiqc from which Nextflow version is removed because we test pipelines on multiple Nextflow versions
97+
removeNextflowVersion("$outputDir/pipeline_info/nf_core_eager_software_mqc_versions.yml"),
98+
).match() },
9699

97100
)
98101
}

0 commit comments

Comments
 (0)