Skip to content

Commit 6ac59f8

Browse files
committed
Minor fixes in snapshot test, main & meta output
1 parent 0df8278 commit 6ac59f8

File tree

4 files changed

+86
-26
lines changed

4 files changed

+86
-26
lines changed

modules/nf-core/vembrane/filter/main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ process VEMBRANE_FILTER {
1212
val expression
1313

1414
output:
15-
tuple val(meta), path("*.{vcf,bcf,bcf.gz}"), emit: filtered_variant
15+
tuple val(meta), path("*.{vcf,bcf,bcf.gz}"), emit: vcf
1616
path "versions.yml" , emit: versions
1717

1818
when:

modules/nf-core/vembrane/filter/meta.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ input:
3939
ontologies: []
4040

4141
output:
42-
filtered_variant:
42+
vcf:
4343
- - meta:
4444
type: map
4545
description: |

modules/nf-core/vembrane/filter/tests/main.nf.test

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ nextflow_process {
2626
then {
2727
assertAll(
2828
{ assert process.success },
29-
{ assert snapshot(process.out).match() }
29+
{ assert snapshot(
30+
process.out,
31+
path(process.out.versions[0]).yaml
32+
).match() }
3033
)
3134
}
3235

@@ -49,7 +52,8 @@ nextflow_process {
4952
assertAll(
5053
{ assert process.success },
5154
{ assert snapshot(
52-
process.out
55+
process.out,
56+
path(process.out.versions[0]).yaml
5357
).match() }
5458
)
5559
}
@@ -72,7 +76,10 @@ nextflow_process {
7276
then {
7377
assertAll(
7478
{ assert process.success },
75-
{ assert snapshot(process.out).match() }
79+
{ assert snapshot(
80+
process.out,
81+
path(process.out.versions[0]).yaml
82+
).match() }
7683
)
7784
}
7885

@@ -94,7 +101,10 @@ test("homo sapiens - bcf.gz") {
94101
then {
95102
assertAll(
96103
{ assert process.success },
97-
{ assert snapshot(process.out).match() }
104+
{ assert snapshot(
105+
process.out,
106+
path(process.out.versions[0]).yaml
107+
).match() }
98108
)
99109
}
100110

@@ -119,7 +129,10 @@ test("homo sapiens - bcf.gz") {
119129
then {
120130
assertAll(
121131
{ assert process.success },
122-
{ assert snapshot(process.out).match() }
132+
{ assert snapshot(
133+
process.out,
134+
path(process.out.versions[0]).yaml
135+
).match() }
123136
)
124137
}
125138

@@ -145,7 +158,8 @@ test("homo sapiens - bcf.gz") {
145158
assertAll(
146159
{ assert process.success },
147160
{ assert snapshot(
148-
process.out
161+
process.out,
162+
path(process.out.versions[0]).yaml
149163
).match() }
150164
)
151165
}
@@ -171,7 +185,10 @@ test("homo sapiens - bcf.gz") {
171185
then {
172186
assertAll(
173187
{ assert process.success },
174-
{ assert snapshot(process.out).match() }
188+
{ assert snapshot(
189+
process.out,
190+
path(process.out.versions[0]).yaml
191+
).match() }
175192
)
176193
}
177194

@@ -196,7 +213,10 @@ test("homo sapiens - bcf.gz - stub") {
196213
then {
197214
assertAll(
198215
{ assert process.success },
199-
{ assert snapshot(process.out).match() }
216+
{ assert snapshot(
217+
process.out,
218+
path(process.out.versions[0]).yaml
219+
).match() }
200220
)
201221
}
202222

modules/nf-core/vembrane/filter/tests/main.nf.test.snap

Lines changed: 56 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"1": [
1414
"versions.yml:md5,16c0e3eafdc08317b2a50616f2425a85"
1515
],
16-
"filtered_variant": [
16+
"vcf": [
1717
[
1818
{
1919
"id": "test"
@@ -24,13 +24,18 @@
2424
"versions": [
2525
"versions.yml:md5,16c0e3eafdc08317b2a50616f2425a85"
2626
]
27+
},
28+
{
29+
"VEMBRANE_FILTER": {
30+
"vembrane": "2.4.0"
31+
}
2732
}
2833
],
2934
"meta": {
3035
"nf-test": "0.9.3",
3136
"nextflow": "25.04.6"
3237
},
33-
"timestamp": "2025-11-13T11:14:06.920892"
38+
"timestamp": "2025-11-19T13:01:08.406479"
3439
},
3540
"homo sapiens - bcf - stub": {
3641
"content": [
@@ -46,7 +51,7 @@
4651
"1": [
4752
"versions.yml:md5,16c0e3eafdc08317b2a50616f2425a85"
4853
],
49-
"filtered_variant": [
54+
"vcf": [
5055
[
5156
{
5257
"id": "test"
@@ -57,13 +62,18 @@
5762
"versions": [
5863
"versions.yml:md5,16c0e3eafdc08317b2a50616f2425a85"
5964
]
65+
},
66+
{
67+
"VEMBRANE_FILTER": {
68+
"vembrane": "2.4.0"
69+
}
6070
}
6171
],
6272
"meta": {
6373
"nf-test": "0.9.3",
6474
"nextflow": "25.04.6"
6575
},
66-
"timestamp": "2025-11-13T11:14:22.72139"
76+
"timestamp": "2025-11-19T13:02:01.86051"
6777
},
6878
"homo sapiens - vcf.gz": {
6979
"content": [
@@ -79,7 +89,7 @@
7989
"1": [
8090
"versions.yml:md5,16c0e3eafdc08317b2a50616f2425a85"
8191
],
82-
"filtered_variant": [
92+
"vcf": [
8393
[
8494
{
8595
"id": "test"
@@ -90,13 +100,18 @@
90100
"versions": [
91101
"versions.yml:md5,16c0e3eafdc08317b2a50616f2425a85"
92102
]
103+
},
104+
{
105+
"VEMBRANE_FILTER": {
106+
"vembrane": "2.4.0"
107+
}
93108
}
94109
],
95110
"meta": {
96111
"nf-test": "0.9.3",
97112
"nextflow": "25.04.6"
98113
},
99-
"timestamp": "2025-11-13T11:14:02.397466"
114+
"timestamp": "2025-11-19T13:00:53.748275"
100115
},
101116
"homo sapiens - vcf.gz - stub": {
102117
"content": [
@@ -112,7 +127,7 @@
112127
"1": [
113128
"versions.yml:md5,16c0e3eafdc08317b2a50616f2425a85"
114129
],
115-
"filtered_variant": [
130+
"vcf": [
116131
[
117132
{
118133
"id": "test"
@@ -123,13 +138,18 @@
123138
"versions": [
124139
"versions.yml:md5,16c0e3eafdc08317b2a50616f2425a85"
125140
]
141+
},
142+
{
143+
"VEMBRANE_FILTER": {
144+
"vembrane": "2.4.0"
145+
}
126146
}
127147
],
128148
"meta": {
129149
"nf-test": "0.9.3",
130150
"nextflow": "25.04.6"
131151
},
132-
"timestamp": "2025-11-13T11:14:18.799085"
152+
"timestamp": "2025-11-19T13:01:48.889571"
133153
},
134154
"homo sapiens - bcf.gz - stub": {
135155
"content": [
@@ -145,7 +165,7 @@
145165
"1": [
146166
"versions.yml:md5,16c0e3eafdc08317b2a50616f2425a85"
147167
],
148-
"filtered_variant": [
168+
"vcf": [
149169
[
150170
{
151171
"id": "test"
@@ -156,13 +176,18 @@
156176
"versions": [
157177
"versions.yml:md5,16c0e3eafdc08317b2a50616f2425a85"
158178
]
179+
},
180+
{
181+
"VEMBRANE_FILTER": {
182+
"vembrane": "2.4.0"
183+
}
159184
}
160185
],
161186
"meta": {
162187
"nf-test": "0.9.3",
163188
"nextflow": "25.04.6"
164189
},
165-
"timestamp": "2025-11-13T11:14:26.472957"
190+
"timestamp": "2025-11-19T13:02:16.104571"
166191
},
167192
"homo sapiens - bcf.gz": {
168193
"content": [
@@ -178,7 +203,7 @@
178203
"1": [
179204
"versions.yml:md5,16c0e3eafdc08317b2a50616f2425a85"
180205
],
181-
"filtered_variant": [
206+
"vcf": [
182207
[
183208
{
184209
"id": "test"
@@ -189,13 +214,18 @@
189214
"versions": [
190215
"versions.yml:md5,16c0e3eafdc08317b2a50616f2425a85"
191216
]
217+
},
218+
{
219+
"VEMBRANE_FILTER": {
220+
"vembrane": "2.4.0"
221+
}
192222
}
193223
],
194224
"meta": {
195225
"nf-test": "0.9.3",
196226
"nextflow": "25.04.6"
197227
},
198-
"timestamp": "2025-11-13T11:14:11.339463"
228+
"timestamp": "2025-11-19T13:01:23.162816"
199229
},
200230
"homo sapiens - vcf": {
201231
"content": [
@@ -211,7 +241,7 @@
211241
"1": [
212242
"versions.yml:md5,16c0e3eafdc08317b2a50616f2425a85"
213243
],
214-
"filtered_variant": [
244+
"vcf": [
215245
[
216246
{
217247
"id": "test"
@@ -222,13 +252,18 @@
222252
"versions": [
223253
"versions.yml:md5,16c0e3eafdc08317b2a50616f2425a85"
224254
]
255+
},
256+
{
257+
"VEMBRANE_FILTER": {
258+
"vembrane": "2.4.0"
259+
}
225260
}
226261
],
227262
"meta": {
228263
"nf-test": "0.9.3",
229264
"nextflow": "25.04.6"
230265
},
231-
"timestamp": "2025-11-13T11:13:57.672228"
266+
"timestamp": "2025-11-19T13:00:38.636223"
232267
},
233268
"homo sapiens - vcf - stub": {
234269
"content": [
@@ -244,7 +279,7 @@
244279
"1": [
245280
"versions.yml:md5,16c0e3eafdc08317b2a50616f2425a85"
246281
],
247-
"filtered_variant": [
282+
"vcf": [
248283
[
249284
{
250285
"id": "test"
@@ -255,12 +290,17 @@
255290
"versions": [
256291
"versions.yml:md5,16c0e3eafdc08317b2a50616f2425a85"
257292
]
293+
},
294+
{
295+
"VEMBRANE_FILTER": {
296+
"vembrane": "2.4.0"
297+
}
258298
}
259299
],
260300
"meta": {
261301
"nf-test": "0.9.3",
262302
"nextflow": "25.04.6"
263303
},
264-
"timestamp": "2025-11-13T11:14:15.063118"
304+
"timestamp": "2025-11-19T13:01:34.578017"
265305
}
266306
}

0 commit comments

Comments
 (0)