Skip to content

Commit f1cc6ce

Browse files
author
maxibor
committed
test: update snapshot assertion
1 parent 3cd7387 commit f1cc6ce

File tree

2 files changed

+56
-15
lines changed

2 files changed

+56
-15
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ nextflow_process {
3030
{ assert process.out.fastq },
3131
{ assert process.out.log },
3232
{ assert path(process.out.log[0][1]).getText().contains("Writing output non-rRNA sequences") },
33-
{ assert snapshot(
34-
path(process.out.versions[0]).yaml
35-
).match() }
33+
{ assert snapshot(process.out.versions).match("versions") }
3634
)
3735
}
3836

@@ -60,9 +58,7 @@ nextflow_process {
6058
then {
6159
assertAll(
6260
{ assert process.success },
63-
{ assert snapshot(
64-
path(process.out.versions[0]).yaml
65-
).match() }
61+
{ assert snapshot(process.out).match() }
6662
)
6763
}
6864

Lines changed: 54 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,73 @@
11
{
2-
"ribodetector - rnaseq PE input": {
2+
"versions": {
33
"content": [
4-
{
5-
"RIBODETECTOR": null,
6-
"ribodetector": "0.3.1"
7-
}
4+
[
5+
"versions.yml:md5,f98df8f0eaa704e4db74785adc9cc791"
6+
]
87
],
98
"meta": {
109
"nf-test": "0.9.3",
1110
"nextflow": "25.10.0"
1211
},
13-
"timestamp": "2025-10-24T10:37:41.570969"
12+
"timestamp": "2025-10-27T10:12:20.183608"
1413
},
1514
"ribodetector - stub rnaseq PE input": {
1615
"content": [
1716
{
18-
"RIBODETECTOR": null,
19-
"ribodetector": "0.3.1"
17+
"0": [
18+
[
19+
{
20+
"id": "test",
21+
"single_end": false
22+
},
23+
[
24+
"test.nonrna.1.fastq.gz:md5,68b329da9893e34099c7d8ad5cb9c940",
25+
"test.nonrna.2.fastq.gz:md5,68b329da9893e34099c7d8ad5cb9c940"
26+
]
27+
]
28+
],
29+
"1": [
30+
[
31+
{
32+
"id": "test",
33+
"single_end": false
34+
},
35+
"test.log:md5,d41d8cd98f00b204e9800998ecf8427e"
36+
]
37+
],
38+
"2": [
39+
"versions.yml:md5,f98df8f0eaa704e4db74785adc9cc791"
40+
],
41+
"fastq": [
42+
[
43+
{
44+
"id": "test",
45+
"single_end": false
46+
},
47+
[
48+
"test.nonrna.1.fastq.gz:md5,68b329da9893e34099c7d8ad5cb9c940",
49+
"test.nonrna.2.fastq.gz:md5,68b329da9893e34099c7d8ad5cb9c940"
50+
]
51+
]
52+
],
53+
"log": [
54+
[
55+
{
56+
"id": "test",
57+
"single_end": false
58+
},
59+
"test.log:md5,d41d8cd98f00b204e9800998ecf8427e"
60+
]
61+
],
62+
"versions": [
63+
"versions.yml:md5,f98df8f0eaa704e4db74785adc9cc791"
64+
]
2065
}
2166
],
2267
"meta": {
2368
"nf-test": "0.9.3",
2469
"nextflow": "25.10.0"
2570
},
26-
"timestamp": "2025-10-24T10:38:17.647722"
71+
"timestamp": "2025-10-27T10:12:59.627863"
2772
}
2873
}

0 commit comments

Comments
 (0)