Skip to content

Commit

Permalink
add nf-test to gatk4/bedtointervallist - nf-core#3936 (nf-core#5251)
Browse files Browse the repository at this point in the history
Co-authored-by: LE BARS Victor <Victor@ar155065.univ-rennes1.fr>
  • Loading branch information
2 people authored and LE BARS Victor committed Mar 20, 2024
1 parent 322fa94 commit 8bdb60d
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 33 deletions.
38 changes: 38 additions & 0 deletions modules/nf-core/gatk4/bedtointervallist/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -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() }
)
}

}

}
35 changes: 35 additions & 0 deletions modules/nf-core/gatk4/bedtointervallist/tests/main.nf.test.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions modules/nf-core/gatk4/bedtointervallist/tests/tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
gatk4/bedtointervallist:
- "modules/nf-core/gatk4/bedtointervallist/**"
3 changes: 0 additions & 3 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**
Expand Down
16 changes: 0 additions & 16 deletions tests/modules/nf-core/gatk4/bedtointervallist/main.nf

This file was deleted.

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

This file was deleted.

9 changes: 0 additions & 9 deletions tests/modules/nf-core/gatk4/bedtointervallist/test.yml

This file was deleted.

0 comments on commit 8bdb60d

Please sign in to comment.