Skip to content

Commit

Permalink
Added nf-test for ucsc/bigwigaverageoverbed (#6251)
Browse files Browse the repository at this point in the history
* Added nf-test for ucsc/bigwigaverageoverbed

* Update modules/nf-core/ucsc/bigwigaverageoverbed/tests/main.nf.test

Co-authored-by: Joon Klaps <[email protected]>

---------

Co-authored-by: Simon Pearce <[email protected]>
Co-authored-by: Joon Klaps <[email protected]>
  • Loading branch information
3 people authored Aug 23, 2024
1 parent c1c2a77 commit dc26c3e
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 32 deletions.
36 changes: 36 additions & 0 deletions modules/nf-core/ucsc/bigwigaverageoverbed/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

nextflow_process {

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

tag "modules"
tag "modules_nfcore"
tag "ucsc"
tag "ucsc/bigwigaverageoverbed"

test("sarscov2-bed-bigwig") {

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

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

}
35 changes: 35 additions & 0 deletions modules/nf-core/ucsc/bigwigaverageoverbed/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"test-ucsc-bigwigaverageoverbed": {
"content": [
{
"0": [
[
{
"id": "test"
},
"test.tab:md5,d92334d90353577571eaf777933dce9b"
]
],
"1": [
"versions.yml:md5,6cd96f62eb8229c893477ae2fefc9a73"
],
"tab": [
[
{
"id": "test"
},
"test.tab:md5,d92334d90353577571eaf777933dce9b"
]
],
"versions": [
"versions.yml:md5,6cd96f62eb8229c893477ae2fefc9a73"
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-23T08:58:18.917224"
}
}
3 changes: 0 additions & 3 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1560,9 +1560,6 @@ truvari/bench:
ucsc/bedtobigbed:
- modules/nf-core/ucsc/bedtobigbed/**
- tests/modules/nf-core/ucsc/bedtobigbed/**
ucsc/bigwigaverageoverbed:
- modules/nf-core/ucsc/bigwigaverageoverbed/**
- tests/modules/nf-core/ucsc/bigwigaverageoverbed/**
ucsc/gtftogenepred:
- modules/nf-core/ucsc/gtftogenepred/**
- tests/modules/nf-core/ucsc/gtftogenepred/**
Expand Down
15 changes: 0 additions & 15 deletions tests/modules/nf-core/ucsc/bigwigaverageoverbed/main.nf

This file was deleted.

This file was deleted.

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

This file was deleted.

0 comments on commit dc26c3e

Please sign in to comment.