Skip to content

Commit

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

nextflow_process {

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

tag "modules"
tag "modules_nfcore"
tag "gatk4"
tag "gatk4/gatherbqsrreports"

test("test-gatk4-gatherbqsrreports") {

when {
process {
"""
input[0] = [
[ id:'test', single_end:false ], // meta map
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/gatk/test.baserecalibrator.table', checkIfExists: true)
]
"""
}
}

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

test("test-gatk4-gatherbqsrreports-multiple") {

when {
process {
"""
input[0] = [
[ id:'test', single_end:false ], // meta map
[
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/gatk/test.baserecalibrator.table', checkIfExists: true),
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/gatk/test2.baserecalibrator.table', checkIfExists: true)
]
]
"""
}
}

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

}
72 changes: 72 additions & 0 deletions modules/nf-core/gatk4/gatherbqsrreports/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"test-gatk4-gatherbqsrreports-multiple": {
"content": [
{
"0": [
[
{
"id": "test",
"single_end": false
},
"test.table:md5,0c1257eececf95db8ca378272d0f21f9"
]
],
"1": [
"versions.yml:md5,413fc0014d5dc41ab67d65f59f61a4a0"
],
"table": [
[
{
"id": "test",
"single_end": false
},
"test.table:md5,0c1257eececf95db8ca378272d0f21f9"
]
],
"versions": [
"versions.yml:md5,413fc0014d5dc41ab67d65f59f61a4a0"
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-26T12:22:34.490694"
},
"test-gatk4-gatherbqsrreports": {
"content": [
{
"0": [
[
{
"id": "test",
"single_end": false
},
"test.table:md5,9603b69fdc3b5090de2e0dd78bfcc4bf"
]
],
"1": [
"versions.yml:md5,413fc0014d5dc41ab67d65f59f61a4a0"
],
"table": [
[
{
"id": "test",
"single_end": false
},
"test.table:md5,9603b69fdc3b5090de2e0dd78bfcc4bf"
]
],
"versions": [
"versions.yml:md5,413fc0014d5dc41ab67d65f59f61a4a0"
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-26T12:22:10.552951"
}
}
3 changes: 0 additions & 3 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -473,9 +473,6 @@ gatk4/filterintervals:
gatk4/filtervarianttranches:
- modules/nf-core/gatk4/filtervarianttranches/**
- tests/modules/nf-core/gatk4/filtervarianttranches/**
gatk4/gatherbqsrreports:
- modules/nf-core/gatk4/gatherbqsrreports/**
- tests/modules/nf-core/gatk4/gatherbqsrreports/**
gatk4/gatherpileupsummaries:
- modules/nf-core/gatk4/gatherpileupsummaries/**
- tests/modules/nf-core/gatk4/gatherpileupsummaries/**
Expand Down
27 changes: 0 additions & 27 deletions tests/modules/nf-core/gatk4/gatherbqsrreports/main.nf

This file was deleted.

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

This file was deleted.

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

This file was deleted.

0 comments on commit d7335a8

Please sign in to comment.