Skip to content

Commit

Permalink
Added nf-test for bedtools/multiinter (#6327)
Browse files Browse the repository at this point in the history
  • Loading branch information
GallVp authored Aug 26, 2024
1 parent 4effd04 commit c63d090
Show file tree
Hide file tree
Showing 6 changed files with 137 additions and 59 deletions.
65 changes: 65 additions & 0 deletions modules/nf-core/bedtools/multiinter/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@

nextflow_process {

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

tag "modules"
tag "modules_nfcore"
tag "bedtools"
tag "bedtools/multiinter"

test("test-bedtools-multiinter") {

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

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

test("test-bedtools-multiinter-genome") {

when {
process {
"""
input[0] = [
[ id:'test', single_end:false ], // meta map
[
file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/bed/test.bed', checkIfExists: true),
file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/bed/test2.bed', 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/bedtools/multiinter/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"test-bedtools-multiinter": {
"content": [
{
"0": [
[
{
"id": "test",
"single_end": false
},
"test.bed:md5,03d8d889a19cf26e038868775bbcbaa7"
]
],
"1": [
"versions.yml:md5,d50d8662e6ba7227f29713a252d0b51c"
],
"bed": [
[
{
"id": "test",
"single_end": false
},
"test.bed:md5,03d8d889a19cf26e038868775bbcbaa7"
]
],
"versions": [
"versions.yml:md5,d50d8662e6ba7227f29713a252d0b51c"
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-26T13:55:57.797405"
},
"test-bedtools-multiinter-genome": {
"content": [
{
"0": [
[
{
"id": "test",
"single_end": false
},
"test.bed:md5,03d8d889a19cf26e038868775bbcbaa7"
]
],
"1": [
"versions.yml:md5,d50d8662e6ba7227f29713a252d0b51c"
],
"bed": [
[
{
"id": "test",
"single_end": false
},
"test.bed:md5,03d8d889a19cf26e038868775bbcbaa7"
]
],
"versions": [
"versions.yml:md5,d50d8662e6ba7227f29713a252d0b51c"
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-26T13:56:02.192345"
}
}
3 changes: 0 additions & 3 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ bedtools/makewindows:
bedtools/maskfasta:
- modules/nf-core/bedtools/maskfasta/**
- tests/modules/nf-core/bedtools/maskfasta/**
bedtools/multiinter:
- modules/nf-core/bedtools/multiinter/**
- tests/modules/nf-core/bedtools/multiinter/**
bedtools/shift:
- modules/nf-core/bedtools/shift/**
- tests/modules/nf-core/bedtools/shift/**
Expand Down
32 changes: 0 additions & 32 deletions tests/modules/nf-core/bedtools/multiinter/main.nf

This file was deleted.

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

This file was deleted.

19 changes: 0 additions & 19 deletions tests/modules/nf-core/bedtools/multiinter/test.yml

This file was deleted.

0 comments on commit c63d090

Please sign in to comment.