Skip to content

Commit

Permalink
Added nf-test for rapidnj (#6257)
Browse files Browse the repository at this point in the history
* Added nf-test for rapidnj

* Fixed assertion

* Update main.nf.test

Co-authored-by: Joon Klaps <[email protected]>

---------

Co-authored-by: Joon Klaps <[email protected]>
  • Loading branch information
GallVp and Joon-Klaps authored Aug 23, 2024
1 parent 0a7ad7c commit 6650b69
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 29 deletions.
36 changes: 36 additions & 0 deletions modules/nf-core/rapidnj/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

nextflow_process {

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

tag "modules"
tag "modules_nfcore"
tag "rapidnj"

test("sarscov2-fasta") {

when {
process {
"""
input[0] = [ file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/alignment/informative_sites.fas', checkIfExists: true) ]
"""
}
}

then {
assertAll(
{ assert process.success },
{ assert process.out.phylogeny },
{ assert snapshot(
process.out.stockholm_alignment,
process.out.versions
).match()
}
)
}
}

}
17 changes: 17 additions & 0 deletions modules/nf-core/rapidnj/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"test-rapidnj": {
"content": [
[
"alignment.sth:md5,d2e995c5dd3e3a8212a98414ae5b5de7"
],
[
"versions.yml:md5,6949732c2fc12b8a5a3e478f197e7fe7"
]
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-23T11:53:44.324999"
}
}
3 changes: 0 additions & 3 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1223,9 +1223,6 @@ qcat:
quast:
- modules/nf-core/quast/**
- tests/modules/nf-core/quast/**
rapidnj:
- modules/nf-core/rapidnj/**
- tests/modules/nf-core/rapidnj/**
raven:
- modules/nf-core/raven/**
- tests/modules/nf-core/raven/**
Expand Down
12 changes: 0 additions & 12 deletions tests/modules/nf-core/rapidnj/main.nf

This file was deleted.

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

This file was deleted.

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

This file was deleted.

0 comments on commit 6650b69

Please sign in to comment.