diff --git a/modules/nf-core/gatk4/bedtointervallist/tests/main.nf.test b/modules/nf-core/gatk4/bedtointervallist/tests/main.nf.test new file mode 100644 index 00000000000..2289f73fa42 --- /dev/null +++ b/modules/nf-core/gatk4/bedtointervallist/tests/main.nf.test @@ -0,0 +1,38 @@ +nextflow_process { + + name "Test Process GATK4_BEDTOINTERVALLIST" + script "../main.nf" + process "GATK4_BEDTOINTERVALLIST" + + tag "modules" + tag "modules_nfcore" + tag "gatk4" + tag "gatk4/bedtointervallist" + + test("test_gatk4_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:'dict' ], // 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() } + ) + } + + } + +} \ No newline at end of file diff --git a/modules/nf-core/gatk4/bedtointervallist/tests/main.nf.test.snap b/modules/nf-core/gatk4/bedtointervallist/tests/main.nf.test.snap new file mode 100644 index 00000000000..48c322fd001 --- /dev/null +++ b/modules/nf-core/gatk4/bedtointervallist/tests/main.nf.test.snap @@ -0,0 +1,35 @@ +{ + "test_gatk4_bedtointervallist": { + "content": [ + { + "0": [ + [ + { + "id": "test" + }, + "test.interval_list:md5,e51101c9357fb2d59fd30e370eefa39c" + ] + ], + "1": [ + "versions.yml:md5,29a18c36f27584eb5a5f2f5457088b3b" + ], + "interval_list": [ + [ + { + "id": "test" + }, + "test.interval_list:md5,e51101c9357fb2d59fd30e370eefa39c" + ] + ], + "versions": [ + "versions.yml:md5,29a18c36f27584eb5a5f2f5457088b3b" + ] + } + ], + "meta": { + "nf-test": "0.8.4", + "nextflow": "23.10.1" + }, + "timestamp": "2024-03-19T14:20:12.168775" + } +} \ No newline at end of file diff --git a/modules/nf-core/gatk4/bedtointervallist/tests/tags.yml b/modules/nf-core/gatk4/bedtointervallist/tests/tags.yml new file mode 100644 index 00000000000..b4d54f129c8 --- /dev/null +++ b/modules/nf-core/gatk4/bedtointervallist/tests/tags.yml @@ -0,0 +1,2 @@ +gatk4/bedtointervallist: + - "modules/nf-core/gatk4/bedtointervallist/**" diff --git a/tests/config/pytest_modules.yml b/tests/config/pytest_modules.yml index 1aa3f4b1083..62970e036bd 100644 --- a/tests/config/pytest_modules.yml +++ b/tests/config/pytest_modules.yml @@ -707,9 +707,6 @@ gatk4/applyvqsr: gatk4/asereadcounter: - modules/nf-core/gatk4/asereadcounter/** - tests/modules/nf-core/gatk4/asereadcounter/** -gatk4/bedtointervallist: - - modules/nf-core/gatk4/bedtointervallist/** - - tests/modules/nf-core/gatk4/bedtointervallist/** gatk4/calculatecontamination: - modules/nf-core/gatk4/calculatecontamination/** - tests/modules/nf-core/gatk4/calculatecontamination/** diff --git a/tests/modules/nf-core/gatk4/bedtointervallist/main.nf b/tests/modules/nf-core/gatk4/bedtointervallist/main.nf deleted file mode 100644 index 62e4e148f1b..00000000000 --- a/tests/modules/nf-core/gatk4/bedtointervallist/main.nf +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env nextflow - -nextflow.enable.dsl = 2 - -include { GATK4_BEDTOINTERVALLIST } from '../../../../../modules/nf-core/gatk4/bedtointervallist/main.nf' - -workflow test_gatk4_bedtointervallist { - input = [ [ id:'test' ], // meta map - [ file(params.test_data['sarscov2']['genome']['test_bed'], checkIfExists: true) ] - ] - dict = [ [ id:'dict' ], // meta map - file(params.test_data['sarscov2']['genome']['genome_dict'], checkIfExists: true) - ] - - GATK4_BEDTOINTERVALLIST ( input, dict ) -} diff --git a/tests/modules/nf-core/gatk4/bedtointervallist/nextflow.config b/tests/modules/nf-core/gatk4/bedtointervallist/nextflow.config deleted file mode 100644 index 8730f1c4b93..00000000000 --- a/tests/modules/nf-core/gatk4/bedtointervallist/nextflow.config +++ /dev/null @@ -1,5 +0,0 @@ -process { - - publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" } - -} diff --git a/tests/modules/nf-core/gatk4/bedtointervallist/test.yml b/tests/modules/nf-core/gatk4/bedtointervallist/test.yml deleted file mode 100644 index e07ee44eaec..00000000000 --- a/tests/modules/nf-core/gatk4/bedtointervallist/test.yml +++ /dev/null @@ -1,9 +0,0 @@ -- name: gatk4 bedtointervallist test_gatk4_bedtointervallist - command: nextflow run ./tests/modules/nf-core/gatk4/bedtointervallist -entry test_gatk4_bedtointervallist -c ./tests/config/nextflow.config -c ./tests/modules/nf-core/gatk4/bedtointervallist/nextflow.config - tags: - - gatk4 - - gatk4/bedtointervallist - files: - - path: output/gatk4/test.interval_list - md5sum: e51101c9357fb2d59fd30e370eefa39c - - path: output/gatk4/versions.yml