Skip to content

Commit

Permalink
Added nf-test for picard/sortvcf (#6289)
Browse files Browse the repository at this point in the history
  • Loading branch information
GallVp authored Aug 26, 2024
1 parent 3b584a9 commit eb3eb64
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 37 deletions.
44 changes: 44 additions & 0 deletions modules/nf-core/picard/sortvcf/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@

nextflow_process {

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

tag "modules"
tag "modules_nfcore"
tag "picard"
tag "picard/sortvcf"

test("test-picard-sortvcf") {

when {
process {
"""
input[0] = [ [ id:'test' ], // meta map
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/vcf/test.vcf', checkIfExists: true)
]
input[1] = [ [ id:'genome' ],
file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta', checkIfExists: true)
]
input[2] = [ [ id:'genome' ],
file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.dict', checkIfExists: true)
]
"""
}
}

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

}
21 changes: 21 additions & 0 deletions modules/nf-core/picard/sortvcf/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"test-picard-sortvcf": {
"content": [
[
"##FILTER=<ID=PASS,Description=\"All filters passed\">",
"##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">",
"##FORMAT=<ID=PL,Number=G,Type=Integer,Description=\"List of Phred-scaled genotype likelihoods\">",
"##INFO=<ID=AC,Number=A,Type=Integer,Description=\"Allele count in genotypes for each ALT allele, in the same order as listed\">",
"##INFO=<ID=AN,Number=1,Type=Integer,Description=\"Total number of alleles in called genotypes\">"
],
[
"versions.yml:md5,11949a1af95080dcc5bd1c75d68dee71"
]
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-26T09:20:13.124551"
}
}
3 changes: 0 additions & 3 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -962,9 +962,6 @@ picard/scatterintervalsbyns:
picard/sortsam:
- modules/nf-core/picard/sortsam/**
- tests/modules/nf-core/picard/sortsam/**
picard/sortvcf:
- modules/nf-core/picard/sortvcf/**
- tests/modules/nf-core/picard/sortvcf/**
pindel/pindel:
- modules/nf-core/pindel/pindel/**
- tests/modules/nf-core/pindel/pindel/**
Expand Down
22 changes: 0 additions & 22 deletions tests/modules/nf-core/picard/sortvcf/main.nf

This file was deleted.

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

This file was deleted.

7 changes: 0 additions & 7 deletions tests/modules/nf-core/picard/sortvcf/test.yml

This file was deleted.

0 comments on commit eb3eb64

Please sign in to comment.