Skip to content

Commit

Permalink
test: Snapshot the versions contents, not the hash
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Sep 10, 2024
1 parent 651561a commit 6030ae8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/nf-core/bowtie/build/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ nextflow_process {
test("sarscov2 - fasta - stub") {

options "-stub"
tag "version"

when {
process {
Expand All @@ -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") },
)
}

Expand Down
14 changes: 14 additions & 0 deletions modules/nf-core/bowtie/build/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand Down

0 comments on commit 6030ae8

Please sign in to comment.