Skip to content

Commit

Permalink
Updated snapshotting logic
Browse files Browse the repository at this point in the history
  • Loading branch information
GallVp committed Jul 16, 2024
1 parent e611c31 commit c23da8d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 42 deletions.
20 changes: 13 additions & 7 deletions modules/nf-core/ltrharvest/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ nextflow_process {
tag "modules_nfcore"
tag "ltrharvest"

test("homo_sapiens-genome_21_fasta") {
test("homo_sapiens - genome_21_fasta") {

when {
process {
Expand All @@ -24,15 +24,18 @@ nextflow_process {
then {
assertAll(
{ assert process.success },
{ assert snapshot(process.out.gff3).match("gff3") },
{ assert snapshot(
process.out.gff3,
process.out.versions
).match()
},
{ assert path(process.out.scn[0][1]).text.contains("46510803 46520182 9380 46510803 46510940 138 46520042 46520182 141 86.52 0 chr21") },
{ assert snapshot(path(process.out.versions[0]).text).match("versions") }
)
}

}

test("sarscov2-genome_fasta-no_ltr") {
test("sarscov2 - genome_fasta - no_ltr") {

when {
process {
Expand All @@ -48,15 +51,18 @@ nextflow_process {
then {
assertAll(
{ assert process.success },
{ assert snapshot(process.out.gff3).match("gff3_no_ltr") },
{ assert snapshot(
process.out.gff3,
process.out.versions
).match()
},
{ assert path(process.out.scn[0][1]).text.contains("predictions are reported in the following way") },
{ assert snapshot(path(process.out.versions[0]).text).match("versions_no_ltr") }
)
}

}

test("homo_sapiens-genome_fasta-stub") {
test("homo_sapiens - genome_fasta - stub") {

options '-stub'

Expand Down
56 changes: 21 additions & 35 deletions modules/nf-core/ltrharvest/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
{
"versions": {
"sarscov2 - genome_fasta - no_ltr": {
"content": [
"\"LTRHARVEST\":\n LTR_HARVEST_parallel: v1.1\n genometools: 1.6.5\n"
[
[
{
"id": "test"
},
"test.gff3:md5,bddeb04277af08b5850e64708e8af02a"
]
],
[
"versions.yml:md5,51e82185b713482d1d48b6f15abe7fcc"
]
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.2"
"nextflow": "24.04.3"
},
"timestamp": "2024-07-16T12:52:39.788245"
"timestamp": "2024-07-17T10:40:36.380052"
},
"homo_sapiens-genome_fasta-stub": {
"homo_sapiens - genome_fasta - stub": {
"content": [
{
"0": [
Expand Down Expand Up @@ -52,30 +62,13 @@
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "23.10.1"
},
"timestamp": "2024-02-22T14:44:30.682167"
},
"gff3_no_ltr": {
"content": [
[
[
{
"id": "test"
},
"test.gff3:md5,bddeb04277af08b5850e64708e8af02a"
]
]
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.3"
},
"timestamp": "2024-07-16T15:19:51.163554"
"timestamp": "2024-07-17T10:40:40.967557"
},
"gff3": {
"homo_sapiens - genome_21_fasta": {
"content": [
[
[
Expand All @@ -84,22 +77,15 @@
},
"test.gff3:md5,da13c4ba22e44ef944ddec38aa72c468"
]
],
[
"versions.yml:md5,51e82185b713482d1d48b6f15abe7fcc"
]
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "23.10.1"
},
"timestamp": "2024-02-22T19:29:33.962761"
},
"versions_no_ltr": {
"content": [
"\"LTRHARVEST\":\n LTR_HARVEST_parallel: v1.1\n genometools: 1.6.5\n"
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.3"
},
"timestamp": "2024-07-16T15:19:51.177662"
"timestamp": "2024-07-17T10:40:30.946"
}
}

0 comments on commit c23da8d

Please sign in to comment.