Skip to content

Commit

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

nextflow_process {

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

tag "modules"
tag "modules_nfcore"
tag "bcftools"
tag "bcftools/split"

test("test-bcftools-split") {

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

then {
assertAll(
{ assert process.success },
{ assert snapshot(
path(process.out.split_vcf[0][1]).vcf.variantsMD5,
process.out.versions
).match()
}
)
}
}

}
15 changes: 15 additions & 0 deletions modules/nf-core/bcftools/split/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"test-bcftools-split": {
"content": [
"ecf3973f634b7baa1c13e60bfb77a174",
[
"versions.yml:md5,a1c58d82f1e5c0fed394bfb865f57fd9"
]
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-26T14:16:45.077115"
}
}
3 changes: 0 additions & 3 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@ bcftools/merge:
bcftools/roh:
- modules/nf-core/bcftools/roh/**
- tests/modules/nf-core/bcftools/roh/**
bcftools/split:
- modules/nf-core/bcftools/split/**
- tests/modules/nf-core/bcftools/split/**
beagle5/beagle:
- modules/nf-core/beagle5/beagle/**
- tests/modules/nf-core/beagle5/beagle/**
Expand Down
16 changes: 0 additions & 16 deletions tests/modules/nf-core/bcftools/split/main.nf

This file was deleted.

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

This file was deleted.

8 changes: 0 additions & 8 deletions tests/modules/nf-core/bcftools/split/test.yml

This file was deleted.

0 comments on commit 641c44e

Please sign in to comment.