From 0c4de055e6b6d59d2f3d42904803fd38636b71ec Mon Sep 17 00:00:00 2001 From: Daniel Schmitz Date: Mon, 18 Nov 2024 14:00:24 +0100 Subject: [PATCH] Changed test snapshots because plot is unstable between environments --- modules/nf-core/trgt/plot/tests/main.nf.test | 10 +++- .../nf-core/trgt/plot/tests/main.nf.test.snap | 60 ++++--------------- 2 files changed, 18 insertions(+), 52 deletions(-) diff --git a/modules/nf-core/trgt/plot/tests/main.nf.test b/modules/nf-core/trgt/plot/tests/main.nf.test index 7a549ddfe09..dcf871df9f8 100644 --- a/modules/nf-core/trgt/plot/tests/main.nf.test +++ b/modules/nf-core/trgt/plot/tests/main.nf.test @@ -103,7 +103,10 @@ nextflow_process { then { assertAll( { assert process.success }, - { assert snapshot(process.out).match() } + { assert snapshot( + file(process.out.plot.get(0).get(1)).name, //unstable + process.out.versions + ).match() } ) } } @@ -129,7 +132,10 @@ nextflow_process { then { assertAll( { assert process.success }, - { assert snapshot(process.out).match() } + { assert snapshot( + file(process.out.plot.get(0).get(1)).name, //unstable + process.out.versions + ).match() } ) } } diff --git a/modules/nf-core/trgt/plot/tests/main.nf.test.snap b/modules/nf-core/trgt/plot/tests/main.nf.test.snap index eac223ab1e0..e8614fde091 100644 --- a/modules/nf-core/trgt/plot/tests/main.nf.test.snap +++ b/modules/nf-core/trgt/plot/tests/main.nf.test.snap @@ -1,68 +1,28 @@ { "homo sapiens - [bam, bai, vcf, TEST], fasta, fai, bed - stub": { "content": [ - { - "0": [ - [ - { - "id": "test" - }, - "test.png:md5,d41d8cd98f00b204e9800998ecf8427e" - ] - ], - "1": [ - "versions.yml:md5,24cc939a0b88728bae8a2102feaf542c" - ], - "plot": [ - [ - { - "id": "test" - }, - "test.png:md5,d41d8cd98f00b204e9800998ecf8427e" - ] - ], - "versions": [ - "versions.yml:md5,24cc939a0b88728bae8a2102feaf542c" - ] - } + "test.png", + [ + "versions.yml:md5,24cc939a0b88728bae8a2102feaf542c" + ] ], "meta": { "nf-test": "0.9.0", "nextflow": "24.04.4" }, - "timestamp": "2024-11-14T16:10:13.150678363" + "timestamp": "2024-11-18T13:58:28.083155724" }, "homo sapiens - [bam, bai, vcf, TEST], fasta, fai, bed": { "content": [ - { - "0": [ - [ - { - "id": "test" - }, - "test_TEST.png:md5,32a2b217628e72817d7ec848a648029d" - ] - ], - "1": [ - "versions.yml:md5,24cc939a0b88728bae8a2102feaf542c" - ], - "plot": [ - [ - { - "id": "test" - }, - "test_TEST.png:md5,32a2b217628e72817d7ec848a648029d" - ] - ], - "versions": [ - "versions.yml:md5,24cc939a0b88728bae8a2102feaf542c" - ] - } + "test_TEST.png", + [ + "versions.yml:md5,24cc939a0b88728bae8a2102feaf542c" + ] ], "meta": { "nf-test": "0.9.0", "nextflow": "24.04.4" }, - "timestamp": "2024-11-14T16:11:37.679432214" + "timestamp": "2024-11-18T13:57:59.291774232" } } \ No newline at end of file