diff --git a/modules/nf-core/gatk4/gatherbqsrreports/tests/main.nf.test b/modules/nf-core/gatk4/gatherbqsrreports/tests/main.nf.test new file mode 100644 index 00000000000..173b149b547 --- /dev/null +++ b/modules/nf-core/gatk4/gatherbqsrreports/tests/main.nf.test @@ -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() } + ) + } + } + +} diff --git a/modules/nf-core/gatk4/gatherbqsrreports/tests/main.nf.test.snap b/modules/nf-core/gatk4/gatherbqsrreports/tests/main.nf.test.snap new file mode 100644 index 00000000000..bc5d4bd1332 --- /dev/null +++ b/modules/nf-core/gatk4/gatherbqsrreports/tests/main.nf.test.snap @@ -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" + } +} \ No newline at end of file diff --git a/tests/config/pytest_modules.yml b/tests/config/pytest_modules.yml index 4aea9c2af1e..ea23b4a2e6d 100644 --- a/tests/config/pytest_modules.yml +++ b/tests/config/pytest_modules.yml @@ -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/** diff --git a/tests/modules/nf-core/gatk4/gatherbqsrreports/main.nf b/tests/modules/nf-core/gatk4/gatherbqsrreports/main.nf deleted file mode 100644 index 150c958c682..00000000000 --- a/tests/modules/nf-core/gatk4/gatherbqsrreports/main.nf +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env nextflow - -nextflow.enable.dsl = 2 - -include { GATK4_GATHERBQSRREPORTS } from '../../../../../modules/nf-core/gatk4/gatherbqsrreports/main.nf' - -workflow test_gatk4_gatherbqsrreports { - - input = [ - [ id:'test', single_end:false ], // meta map - file(params.test_data['homo_sapiens']['illumina']['test_baserecalibrator_table'], checkIfExists: true) - ] - - GATK4_GATHERBQSRREPORTS ( input ) -} - -workflow test_gatk4_gatherbqsrreports_multiple { - - input = [ - [ id:'test', single_end:false ], // meta map - [file(params.test_data['homo_sapiens']['illumina']['test_baserecalibrator_table'], checkIfExists: true), - file(params.test_data['homo_sapiens']['illumina']['test2_baserecalibrator_table'], checkIfExists: true) - ] - ] - - GATK4_GATHERBQSRREPORTS ( input ) -} diff --git a/tests/modules/nf-core/gatk4/gatherbqsrreports/nextflow.config b/tests/modules/nf-core/gatk4/gatherbqsrreports/nextflow.config deleted file mode 100644 index 50f50a7a357..00000000000 --- a/tests/modules/nf-core/gatk4/gatherbqsrreports/nextflow.config +++ /dev/null @@ -1,5 +0,0 @@ -process { - - publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" } - -} \ No newline at end of file diff --git a/tests/modules/nf-core/gatk4/gatherbqsrreports/test.yml b/tests/modules/nf-core/gatk4/gatherbqsrreports/test.yml deleted file mode 100644 index e70c49eaa86..00000000000 --- a/tests/modules/nf-core/gatk4/gatherbqsrreports/test.yml +++ /dev/null @@ -1,19 +0,0 @@ -- name: gatk4 gatherbqsrreports test_gatk4_gatherbqsrreports - command: nextflow run ./tests/modules/nf-core/gatk4/gatherbqsrreports -entry test_gatk4_gatherbqsrreports -c ./tests/config/nextflow.config - tags: - - gatk4 - - gatk4/gatherbqsrreports - files: - - path: output/gatk4/test.table - md5sum: 9603b69fdc3b5090de2e0dd78bfcc4bf - - path: output/gatk4/versions.yml - -- name: gatk4 gatherbqsrreports test_gatk4_gatherbqsrreports_multiple - command: nextflow run ./tests/modules/nf-core/gatk4/gatherbqsrreports -entry test_gatk4_gatherbqsrreports_multiple -c ./tests/config/nextflow.config - tags: - - gatk4 - - gatk4/gatherbqsrreports - files: - - path: output/gatk4/test.table - md5sum: 0c1257eececf95db8ca378272d0f21f9 - - path: output/gatk4/versions.yml