Skip to content

Commit

Permalink
Added nf-test for picard/scatterintervalsbyns
Browse files Browse the repository at this point in the history
  • Loading branch information
GallVp committed Aug 26, 2024
1 parent f5884ea commit 0e233a0
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 43 deletions.
43 changes: 43 additions & 0 deletions modules/nf-core/picard/scatterintervalsbyns/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@

nextflow_process {

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

tag "modules"
tag "modules_nfcore"
tag "picard"
tag "picard/scatterintervalsbyns"

test("test-picard-scatterintervalsbyns") {

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

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

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"test-picard-scatterintervalsbyns": {
"content": [
{
"0": [
[
{
"id": "test",
"single_end": false
},
"test.interval_list:md5,5e4ca3e8407a0400f3cfe9c670c63483"
]
],
"1": [
"versions.yml:md5,f92227dd1ef9396cd9ee2be53eb80459"
],
"intervals": [
[
{
"id": "test",
"single_end": false
},
"test.interval_list:md5,5e4ca3e8407a0400f3cfe9c670c63483"
]
],
"versions": [
"versions.yml:md5,f92227dd1ef9396cd9ee2be53eb80459"
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-26T09:25:45.447792"
}
}
3 changes: 0 additions & 3 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1043,9 +1043,6 @@ picard/liftovervcf:
picard/renamesampleinvcf:
- modules/nf-core/picard/renamesampleinvcf/**
- tests/modules/nf-core/picard/renamesampleinvcf/**
picard/scatterintervalsbyns:
- modules/nf-core/picard/scatterintervalsbyns/**
- tests/modules/nf-core/picard/scatterintervalsbyns/**
picard/sortsam:
- modules/nf-core/picard/sortsam/**
- tests/modules/nf-core/picard/sortsam/**
Expand Down
25 changes: 0 additions & 25 deletions tests/modules/nf-core/picard/scatterintervalsbyns/main.nf

This file was deleted.

This file was deleted.

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

This file was deleted.

0 comments on commit 0e233a0

Please sign in to comment.