Skip to content

Commit

Permalink
Added stub test
Browse files Browse the repository at this point in the history
  • Loading branch information
GallVp committed Aug 26, 2024
1 parent 0e233a0 commit b9c06a9
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 3 deletions.
37 changes: 34 additions & 3 deletions modules/nf-core/picard/scatterintervalsbyns/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,46 @@ nextflow_process {
process {
"""
input[0] = [
[ id:'test', single_end:false ], // meta map
[ 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
[ 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
[ 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() }
)
}
}

test("test-picard-scatterintervalsbyns-stub") {
options '-stub'

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)
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,39 @@
{
"test-picard-scatterintervalsbyns-stub": {
"content": [
{
"0": [
[
{
"id": "test",
"single_end": false
},
"test.interval_list:md5,d41d8cd98f00b204e9800998ecf8427e"
]
],
"1": [
"versions.yml:md5,f92227dd1ef9396cd9ee2be53eb80459"
],
"intervals": [
[
{
"id": "test",
"single_end": false
},
"test.interval_list:md5,d41d8cd98f00b204e9800998ecf8427e"
]
],
"versions": [
"versions.yml:md5,f92227dd1ef9396cd9ee2be53eb80459"
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-27T10:31:47.186455"
},
"test-picard-scatterintervalsbyns": {
"content": [
{
Expand Down

0 comments on commit b9c06a9

Please sign in to comment.