Skip to content

Commit

Permalink
Added nf-test for rapidnj
Browse files Browse the repository at this point in the history
  • Loading branch information
GallVp committed Aug 22, 2024
1 parent fe9614c commit 4bd7a0d
Show file tree
Hide file tree
Showing 6 changed files with 54 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("test-rapidnj") {

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 snapshot(
process.out.stockholm_alignment,
file(process.out.phylogeny[0][1]).name,
process.out.versions
).match()
}
)
}
}

}
18 changes: 18 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,18 @@
{
"test-rapidnj": {
"content": [
[
"alignment.sth:md5,d2e995c5dd3e3a8212a98414ae5b5de7"
],
"U",
[
"versions.yml:md5,6949732c2fc12b8a5a3e478f197e7fe7"
]
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-23T10:46:46.856713"
}
}
3 changes: 0 additions & 3 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1232,9 +1232,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 4bd7a0d

Please sign in to comment.