Skip to content

Commit 43c983c

Browse files
pinin4fjordsclaude
andauthored
fix(ribodetector): Add version snapshot for topic-based version collection (#9478)
* fix(ribodetector): Add version snapshot for topic-based version collection Add snapshot assertion for versions output using findAll pattern to capture topic-based version emissions from ribodetector module. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * Fix versions in snap --------- Co-authored-by: Claude <[email protected]>
1 parent 61ce58a commit 43c983c

2 files changed

Lines changed: 22 additions & 4 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ nextflow_process {
2929
{ assert process.success },
3030
{ assert process.out.fastq },
3131
{ assert process.out.log },
32-
{ assert path(process.out.log[0][1]).getText().contains("Writing output non-rRNA sequences") }
33-
// Note: versions collected via topic, not snapshotted
32+
{ assert path(process.out.log[0][1]).getText().contains("Writing output non-rRNA sequences") },
33+
{ assert snapshot(process.out.findAll { key, val -> key.startsWith("versions") }).match() }
3434
)
3535
}
3636

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

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
{
2+
"ribodetector - rnaseq PE input": {
3+
"content": [
4+
{
5+
"versions_ribodetector": [
6+
[
7+
"RIBODETECTOR",
8+
"ribodetector",
9+
"0.3.2"
10+
]
11+
]
12+
}
13+
],
14+
"meta": {
15+
"nf-test": "0.9.2",
16+
"nextflow": "25.10.0"
17+
},
18+
"timestamp": "2025-11-29T21:25:27.269196"
19+
},
220
"ribodetector - stub rnaseq PE input": {
321
"content": [
422
{
@@ -62,8 +80,8 @@
6280
],
6381
"meta": {
6482
"nf-test": "0.9.3",
65-
"nextflow": "25.10.0"
83+
"nextflow": "25.10.2"
6684
},
67-
"timestamp": "2025-11-29T20:07:13.509994907"
85+
"timestamp": "2025-11-29T21:44:20.650130249"
6886
}
6987
}

0 commit comments

Comments
 (0)