Skip to content

Commit

Permalink
nf-test tcoffee/seqreformat (nf-core#4435)
Browse files Browse the repository at this point in the history
* Add nf-test for tcoffee/seqreformat

* Remove pytest
  • Loading branch information
JoseEspinosa authored Nov 28, 2023
1 parent 1f253ec commit b04c647
Show file tree
Hide file tree
Showing 11 changed files with 63 additions and 104 deletions.
32 changes: 0 additions & 32 deletions modules/nf-core/tcoffee/seqreformat/main.nf.test

This file was deleted.

31 changes: 0 additions & 31 deletions modules/nf-core/tcoffee/seqreformat/main.nf.test.snap

This file was deleted.

3 changes: 2 additions & 1 deletion modules/nf-core/tcoffee/seqreformat/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ tools:
documentation: "https://tcoffee.readthedocs.io/en/latest/tcoffee_main_documentation.html"
tool_dev_url: "https://github.com/cbcrg/tcoffee"
doi: "10.1006/jmbi.2000.4042"
licence: "['GPL v3']"
licence: ["GPL v3"]
input:
- meta:
type: map
Expand Down Expand Up @@ -43,3 +43,4 @@ output:

authors:
- "@luisas"
- "@JoseEspinosa"
9 changes: 0 additions & 9 deletions modules/nf-core/tcoffee/seqreformat/nextflow.config

This file was deleted.

33 changes: 33 additions & 0 deletions modules/nf-core/tcoffee/seqreformat/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
nextflow_process {

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

tag "modules"
tag "modules_nfcore"
tag "tcoffee"
tag "tcoffee/seqreformat"

test("sarscov2 - bam") {

when {
process {
"""
input[0] = [ [ id:'test' ],
file("https://raw.githubusercontent.com/nf-core/test-datasets/multiplesequencealign/testdata/setoxin-ref.fa", checkIfExists: true)
]
"""
}
}


then {
assertAll(
{ assert process.success },
{ assert snapshot(process.out.formatted_file).match("formatted_file")},
{ assert snapshot(process.out.versions).match("versions") }
)
}
}
}
23 changes: 23 additions & 0 deletions modules/nf-core/tcoffee/seqreformat/tests/main.nf.test.snap

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

3 changes: 3 additions & 0 deletions modules/nf-core/tcoffee/seqreformat/tests/nextflow.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
process {
ext.args = "-output=sim_idscore"
}
2 changes: 2 additions & 0 deletions modules/nf-core/tcoffee/seqreformat/tests/tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tcoffee/seqreformat:
- "modules/nf-core/tcoffee/seqreformat/**"
15 changes: 0 additions & 15 deletions tests/modules/nf-core/tcoffee/seqreformat/main.nf

This file was deleted.

7 changes: 0 additions & 7 deletions tests/modules/nf-core/tcoffee/seqreformat/nextflow.config

This file was deleted.

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

This file was deleted.

0 comments on commit b04c647

Please sign in to comment.