Skip to content

Commit

Permalink
Added nf-test for picard/mergesamfiles (#6258)
Browse files Browse the repository at this point in the history
  • Loading branch information
GallVp authored Aug 23, 2024
1 parent c57b489 commit 98f19f2
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 29 deletions.
39 changes: 39 additions & 0 deletions modules/nf-core/picard/mergesamfiles/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@

nextflow_process {

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

tag "modules"
tag "modules_nfcore"
tag "picard"
tag "picard/mergesamfiles"

test("test-picard-mergesamfiles") {

when {
process {
"""
input[0] = [ [ id:'test', single_end:false ], // meta map
[ file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/bam/test.paired_end.sorted.bam', checkIfExists: true),
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/bam/test.single_end.bam', checkIfExists: true), ]
]
"""
}
}

then {
assertAll(
{ assert process.success },
{ assert snapshot(
bam(process.out.bam[0][1]).getReadsMD5(),
process.out.versions
).match()
}
)
}
}

}
15 changes: 15 additions & 0 deletions modules/nf-core/picard/mergesamfiles/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"test-picard-mergesamfiles": {
"content": [
"730da54c088350ff625d34b95e623dca",
[
"versions.yml:md5,3b5243ec10606330dd11a38fa7c7fa1f"
]
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-23T10:50:00.555746"
}
}
3 changes: 0 additions & 3 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1112,9 +1112,6 @@ picard/fixmateinformation:
picard/liftovervcf:
- modules/nf-core/picard/liftovervcf/**
- tests/modules/nf-core/picard/liftovervcf/**
picard/mergesamfiles:
- modules/nf-core/picard/mergesamfiles/**
- tests/modules/nf-core/picard/mergesamfiles/**
picard/renamesampleinvcf:
- modules/nf-core/picard/renamesampleinvcf/**
- tests/modules/nf-core/picard/renamesampleinvcf/**
Expand Down
14 changes: 0 additions & 14 deletions tests/modules/nf-core/picard/mergesamfiles/main.nf

This file was deleted.

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

This file was deleted.

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

This file was deleted.

0 comments on commit 98f19f2

Please sign in to comment.