Louis Le Nézet
03/03/2026, 12:34 PMnf_test_content: 'tests/default.nf.test' does not snapshot a 'versions.yml' file.
The issue being that I do not have anymore such a file.
Here is my test
then {
assertAll(
{ assert workflow.success },
{ assert snapshot(
UTILS.getPipelineResults(outputDir, workflow),
[
"all_samples.glimpse1": UTILS.vcfDetails("$outputDir/imputation/glimpse1/concat/all_samples.batch0.glimpse1.vcf.gz")
]
).match() }
)
}
With UTILS.getPipelineResults
class UTILS {
public static def getPipelineResults(outdir, workflow){
return [
"workflow size": workflow.trace.succeeded().size(),
"versions" : removeNextflowVersion("$outdir/pipeline_info/nf_core_phaseimpute_software_mqc_versions.yml"),
...
]
}
}Nicolas Vannieuwkerke
03/03/2026, 12:38 PMNicolas Vannieuwkerke
03/03/2026, 12:39 PMMaxime Garcia
03/03/2026, 12:48 PMLouis Le Nézet
03/03/2026, 12:52 PM"pipeline_info/nf_core_phaseimpute_software_mqc_versions.yml" in my snapshot, but I still get the error 😕Nicolas Vannieuwkerke
03/03/2026, 12:55 PMLouis Le Nézet
03/03/2026, 12:57 PMMaxime Garcia
03/03/2026, 1:37 PMLouis Le Nézet
03/03/2026, 3:20 PMreturn [
"workflow size": workflow.trace.succeeded().size(),
"versions" : removeNextflowVersion("$outdir/pipeline_info/nf_core_phaseimpute_software_mqc_versions.yml"),
...
]Maxime Garcia
03/03/2026, 3:47 PMLouis Le Nézet
03/03/2026, 3:50 PM.nf.test that needs to contains versions.yml .
As I'm using a wrapper this is not detected.
However if I change my default.nf.test to the following, i don't get the error anymore.
nextflow_pipeline {
name "Test pipeline"
script "../main.nf"
tag "pipeline"
tag "nf-core/phaseimpute"
tag "test"
test("-profile test") {
config "../conf/test.config"
when {
params {
publish_dir_mode = "copy"
pipelines_testdata_base_path = '<https://raw.githubusercontent.com/nf-core/test-datasets/refs/heads/phaseimpute/>'
outdir = "$outputDir"
}
}
then {
assertAll(
{ assert workflow.success },
{ assert snapshot(
versions.yml, // With this line no more errors !
UTILS.getPipelineResults(outputDir, workflow),
[
"all_samples.glimpse1": UTILS.vcfDetails("$outputDir/imputation/glimpse1/concat/all_samples.batch0.glimpse1.vcf.gz")
]
).match() }
)
}
}
}Louis Le Nézet
03/03/2026, 3:52 PMMaxime Garcia
03/03/2026, 3:59 PMMaxime Garcia
03/03/2026, 3:59 PMLouis Le Nézet
03/03/2026, 4:02 PMversions.yml in the default.nf.test but you don't have the error...Maxime Garcia
03/03/2026, 4:02 PMLouis Le Nézet
03/03/2026, 4:03 PMMaxime Garcia
03/03/2026, 4:04 PMLouis Le Nézet
03/03/2026, 4:04 PMMaxime Garcia
03/03/2026, 4:05 PM