Skip to content

Commit

Permalink
Added nf-test for ucsc/wigtobigwig
Browse files Browse the repository at this point in the history
  • Loading branch information
GallVp committed Aug 26, 2024
1 parent 3fd7beb commit 8d75c08
Show file tree
Hide file tree
Showing 6 changed files with 131 additions and 32 deletions.
59 changes: 59 additions & 0 deletions modules/nf-core/ucsc/wigtobigwig/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@

nextflow_process {

name "Test Process UCSC_WIGTOBIGWIG"
script "../main.nf"
process "UCSC_WIGTOBIGWIG"

tag "modules"
tag "modules_nfcore"
tag "ucsc"
tag "ucsc/wigtobigwig"

test("test-ucsc-wigtobigwig") {

when {
process {
"""
input[0] = [
[ id:'test', single_end:false ], // meta map,
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/wig/test.wig.gz', checkIfExists: true)
]
input[1] = file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.sizes', checkIfExists: true)
"""
}
}

then {
assertAll(
{ assert process.success },
{ assert snapshot(process.out).match() }
)
}
}

test("test-ucsc-wigtobigwig-stub") {
options '-stub'
when {
process {
"""
input[0] = [
[ id:'test', single_end:false ], // meta map,
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/wig/test.wig.gz', checkIfExists: true)
]
input[1] = file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.sizes', checkIfExists: true)
"""
}
}

then {
assertAll(
{ assert process.success },
{ assert snapshot(process.out).match() }
)
}
}

}
72 changes: 72 additions & 0 deletions modules/nf-core/ucsc/wigtobigwig/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"test-ucsc-wigtobigwig": {
"content": [
{
"0": [
[
{
"id": "test",
"single_end": false
},
"test.bw:md5,b64af7003665dc51fae958216b06ed95"
]
],
"1": [
"versions.yml:md5,e99b51033a14e1602fe195965a109feb"
],
"bw": [
[
{
"id": "test",
"single_end": false
},
"test.bw:md5,b64af7003665dc51fae958216b06ed95"
]
],
"versions": [
"versions.yml:md5,e99b51033a14e1602fe195965a109feb"
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-27T11:54:03.735102"
},
"test-ucsc-wigtobigwig-stub": {
"content": [
{
"0": [
[
{
"id": "test",
"single_end": false
},
"test.bw:md5,d41d8cd98f00b204e9800998ecf8427e"
]
],
"1": [
"versions.yml:md5,e99b51033a14e1602fe195965a109feb"
],
"bw": [
[
{
"id": "test",
"single_end": false
},
"test.bw:md5,d41d8cd98f00b204e9800998ecf8427e"
]
],
"versions": [
"versions.yml:md5,e99b51033a14e1602fe195965a109feb"
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-27T11:54:07.924401"
}
}
3 changes: 0 additions & 3 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1326,9 +1326,6 @@ truvari/bench:
ucsc/bedtobigbed:
- modules/nf-core/ucsc/bedtobigbed/**
- tests/modules/nf-core/ucsc/bedtobigbed/**
ucsc/wigtobigwig:
- modules/nf-core/ucsc/wigtobigwig/**
- tests/modules/nf-core/ucsc/wigtobigwig/**
ultra/align:
- modules/nf-core/ultra/align/**
- tests/modules/nf-core/ultra/align/**
Expand Down
15 changes: 0 additions & 15 deletions tests/modules/nf-core/ucsc/wigtobigwig/main.nf

This file was deleted.

5 changes: 0 additions & 5 deletions tests/modules/nf-core/ucsc/wigtobigwig/nextflow.config

This file was deleted.

9 changes: 0 additions & 9 deletions tests/modules/nf-core/ucsc/wigtobigwig/test.yml

This file was deleted.

0 comments on commit 8d75c08

Please sign in to comment.