Skip to content

Commit 6030ae8

Browse files
committed
test: Snapshot the versions contents, not the hash
1 parent 651561a commit 6030ae8

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

modules/nf-core/bowtie/build/tests/main.nf.test

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ nextflow_process {
3434
test("sarscov2 - fasta - stub") {
3535

3636
options "-stub"
37+
tag "version"
3738

3839
when {
3940
process {
@@ -48,7 +49,8 @@ nextflow_process {
4849
then {
4950
assertAll(
5051
{ assert process.success },
51-
{ assert snapshot(process.out).match() }
52+
{ assert snapshot(process.out).match() },
53+
{ assert snapshot(path(process.out.versions.get(0)).yaml).match("versions") },
5254
)
5355
}
5456

modules/nf-core/bowtie/build/tests/main.nf.test.snap

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,20 @@
4646
},
4747
"timestamp": "2024-06-18T08:38:14.852528155"
4848
},
49+
"versions": {
50+
"content": [
51+
{
52+
"BOWTIE_BUILD": {
53+
"bowtie": "1.3.0"
54+
}
55+
}
56+
],
57+
"meta": {
58+
"nf-test": "0.9.0",
59+
"nextflow": "24.04.4"
60+
},
61+
"timestamp": "2024-09-10T11:48:00.007395903"
62+
},
4963
"sarscov2 - fasta": {
5064
"content": [
5165
{

0 commit comments

Comments
 (0)