Skip to content

Commit

Permalink
Added nf-test for picard/bedtointervallist (#6298)
Browse files Browse the repository at this point in the history
  • Loading branch information
GallVp authored Aug 26, 2024
1 parent f5bc694 commit 8c4124c
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 34 deletions.
40 changes: 40 additions & 0 deletions modules/nf-core/picard/bedtointervallist/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

nextflow_process {

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

tag "modules"
tag "modules_nfcore"
tag "picard"
tag "picard/bedtointervallist"

test("test-picard-bedtointervallist") {

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

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

}
35 changes: 35 additions & 0 deletions modules/nf-core/picard/bedtointervallist/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"test-picard-bedtointervallist": {
"content": [
{
"0": [
[
{
"id": "test"
},
"test.interval_list:md5,e51101c9357fb2d59fd30e370eefa39c"
]
],
"1": [
"versions.yml:md5,8d0ce8ecdf3bc716de22d75e61aaaf65"
],
"interval_list": [
[
{
"id": "test"
},
"test.interval_list:md5,e51101c9357fb2d59fd30e370eefa39c"
]
],
"versions": [
"versions.yml:md5,8d0ce8ecdf3bc716de22d75e61aaaf65"
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-26T10:39:08.82372"
}
}
3 changes: 0 additions & 3 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -941,9 +941,6 @@ peka:
phyloflash:
- modules/nf-core/phyloflash/**
- tests/modules/nf-core/phyloflash/**
picard/bedtointervallist:
- modules/nf-core/picard/bedtointervallist/**
- tests/modules/nf-core/picard/bedtointervallist/**
picard/cleansam:
- modules/nf-core/picard/cleansam/**
- tests/modules/nf-core/picard/cleansam/**
Expand Down
18 changes: 0 additions & 18 deletions tests/modules/nf-core/picard/bedtointervallist/main.nf

This file was deleted.

This file was deleted.

8 changes: 0 additions & 8 deletions tests/modules/nf-core/picard/bedtointervallist/test.yml

This file was deleted.

0 comments on commit 8c4124c

Please sign in to comment.