From 6030ae8a7888566b40cf713ace3a142e5606dc36 Mon Sep 17 00:00:00 2001 From: Edmund Miller Date: Tue, 10 Sep 2024 11:49:33 -0500 Subject: [PATCH] test: Snapshot the versions contents, not the hash --- modules/nf-core/bowtie/build/tests/main.nf.test | 4 +++- .../nf-core/bowtie/build/tests/main.nf.test.snap | 14 ++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/modules/nf-core/bowtie/build/tests/main.nf.test b/modules/nf-core/bowtie/build/tests/main.nf.test index 25fb3dad83b6..b58f1d69a2fc 100644 --- a/modules/nf-core/bowtie/build/tests/main.nf.test +++ b/modules/nf-core/bowtie/build/tests/main.nf.test @@ -34,6 +34,7 @@ nextflow_process { test("sarscov2 - fasta - stub") { options "-stub" + tag "version" when { process { @@ -48,7 +49,8 @@ nextflow_process { then { assertAll( { assert process.success }, - { assert snapshot(process.out).match() } + { assert snapshot(process.out).match() }, + { assert snapshot(path(process.out.versions.get(0)).yaml).match("versions") }, ) } diff --git a/modules/nf-core/bowtie/build/tests/main.nf.test.snap b/modules/nf-core/bowtie/build/tests/main.nf.test.snap index e8061756ba26..6951ac5b5d42 100644 --- a/modules/nf-core/bowtie/build/tests/main.nf.test.snap +++ b/modules/nf-core/bowtie/build/tests/main.nf.test.snap @@ -46,6 +46,20 @@ }, "timestamp": "2024-06-18T08:38:14.852528155" }, + "versions": { + "content": [ + { + "BOWTIE_BUILD": { + "bowtie": "1.3.0" + } + } + ], + "meta": { + "nf-test": "0.9.0", + "nextflow": "24.04.4" + }, + "timestamp": "2024-09-10T11:48:00.007395903" + }, "sarscov2 - fasta": { "content": [ {