From a8b5e5c0c623d2ab5e549607a46b6c161dccb10e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Famke=20Ba=CC=88uerle?= Date: Wed, 15 May 2024 13:33:48 +0200 Subject: [PATCH] change to check for filename --- .../gatk4/applyvqsr/tests/main.nf.test | 4 ++-- .../gatk4/applyvqsr/tests/main.nf.test.snap | 20 +++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/modules/nf-core/gatk4/applyvqsr/tests/main.nf.test b/modules/nf-core/gatk4/applyvqsr/tests/main.nf.test index c316480ef52..104eb7f01b4 100644 --- a/modules/nf-core/gatk4/applyvqsr/tests/main.nf.test +++ b/modules/nf-core/gatk4/applyvqsr/tests/main.nf.test @@ -35,7 +35,7 @@ nextflow_process { { assert process.success }, { assert snapshot(process.out.versions).match("versions") }, { assert path(process.out.vcf.get(0).get(1)).linesGzip.contains("##fileformat=VCFv4.2") }, - { assert path(process.out.tbi.get(0).get(1)).linesGzip.toString().contains("TBI")} + { assert snapshot(file(process.out.tbi.get(0).get(1)).name).match() } ) } @@ -67,7 +67,7 @@ nextflow_process { { assert process.success }, { assert snapshot(process.out.versions).match("versions_allelspecific") }, { assert path(process.out.vcf.get(0).get(1)).linesGzip.contains("##fileformat=VCFv4.2") }, - { assert path(process.out.tbi.get(0).get(1)).linesGzip.toString().contains("TBI")} + { assert snapshot(file(process.out.tbi.get(0).get(1)).name).match() } ) } diff --git a/modules/nf-core/gatk4/applyvqsr/tests/main.nf.test.snap b/modules/nf-core/gatk4/applyvqsr/tests/main.nf.test.snap index a30c9eca173..ad2fe8be65a 100644 --- a/modules/nf-core/gatk4/applyvqsr/tests/main.nf.test.snap +++ b/modules/nf-core/gatk4/applyvqsr/tests/main.nf.test.snap @@ -1,4 +1,24 @@ { + "human - vcf": { + "content": [ + "test.vcf.gz.tbi" + ], + "meta": { + "nf-test": "0.8.4", + "nextflow": "23.10.0" + }, + "timestamp": "2024-05-15T13:31:50.727658" + }, + "human - vcf - allele-specific": { + "content": [ + "test.vcf.gz.tbi" + ], + "meta": { + "nf-test": "0.8.4", + "nextflow": "23.10.0" + }, + "timestamp": "2024-05-15T13:29:42.331816" + }, "versions": { "content": [ [