Skip to content

Commit

Permalink
added stub section and updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
MarieLataretu committed Dec 20, 2024
1 parent 3d107f4 commit b25bdde
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
13 changes: 13 additions & 0 deletions modules/nf-core/bcftools/consensus/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,17 @@ process BCFTOOLS_CONSENSUS {
bcftools: \$(bcftools --version 2>&1 | head -n1 | sed 's/^.*bcftools //; s/ .*\$//')
END_VERSIONS
"""

stub:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
def masking = mask ? "-m $mask" : ""
"""
touch ${prefix}.fa

cat <<-END_VERSIONS > versions.yml
"${task.process}":
bcftools: \$(bcftools --version 2>&1 | head -n1 | sed 's/^.*bcftools //; s/ .*\$//')
END_VERSIONS
"""
}
10 changes: 5 additions & 5 deletions modules/nf-core/bcftools/consensus/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{
"id": "test"
},
"test.fa:md5,313f4a657187fdaf293c4ed69d98c112"
"test.fa:md5,d41d8cd98f00b204e9800998ecf8427e"
]
],
"1": [
Expand All @@ -18,7 +18,7 @@
{
"id": "test"
},
"test.fa:md5,313f4a657187fdaf293c4ed69d98c112"
"test.fa:md5,d41d8cd98f00b204e9800998ecf8427e"
]
],
"versions": [
Expand All @@ -27,10 +27,10 @@
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "23.04.1"
"nf-test": "0.9.2",
"nextflow": "24.10.3"
},
"timestamp": "2024-08-20T13:56:14.553364445"
"timestamp": "2024-12-20T15:38:55.13767915"
},
"bcftools - test": {
"content": [
Expand Down

0 comments on commit b25bdde

Please sign in to comment.