Skip to content

Commit

Permalink
Changed test snapshots because plot is unstable between environments
Browse files Browse the repository at this point in the history
  • Loading branch information
Schmytzi committed Nov 18, 2024
1 parent 171956a commit 0c4de05
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 52 deletions.
10 changes: 8 additions & 2 deletions modules/nf-core/trgt/plot/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -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() }
)
}
}
Expand All @@ -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() }
)
}
}
Expand Down
60 changes: 10 additions & 50 deletions modules/nf-core/trgt/plot/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -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"
}
}

0 comments on commit 0c4de05

Please sign in to comment.