Skip to content

Commit

Permalink
Added nf-test for tiara/tiara
Browse files Browse the repository at this point in the history
  • Loading branch information
GallVp committed Aug 22, 2024
1 parent fe9614c commit 0f7ca5c
Show file tree
Hide file tree
Showing 8 changed files with 75 additions and 44 deletions.
2 changes: 1 addition & 1 deletion modules/nf-core/tiara/tiara/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ tools:
documentation: https://ibe-uw.github.io/tiara/"
tool_dev_url: "https://github.com/ibe-uw/tiara"
doi: "10.1093/bioinformatics/btab672"
licence: "MIT"
licence: ["MIT"]
input:
- meta:
type: map
Expand Down
42 changes: 42 additions & 0 deletions modules/nf-core/tiara/tiara/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@

nextflow_process {

name "Test Process TIARA_TIARA"
script "../main.nf"
process "TIARA_TIARA"
config "./nextflow.config"

tag "modules"
tag "modules_nfcore"
tag "tiara"
tag "tiara/tiara"

test("test-tiara-tiara") {

when {
process {
"""
input[0] = [
[ id:'test', single_end:false ], // meta map
file(params.modules_testdata_base_path + 'genomics/prokaryotes/bacteroides_fragilis/illumina/fasta/test1.contigs.fa.gz', checkIfExists: true)
]
"""
}
}

then {
assertAll(
{ assert process.success },
{ assert snapshot(
process.out.classifications,
file(process.out.log[0][1]).name,
process.out.fasta,
process.out.versions
).match()
}
)
}
}

}
27 changes: 27 additions & 0 deletions modules/nf-core/tiara/tiara/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"test-tiara-tiara": {
"content": [
[
[
{
"id": "test",
"single_end": false
},
"test.txt:md5,1e4a4d8081c20b2540316fb9fafb5ad3"
]
],
"log_test.txt",
[

],
[
"versions.yml:md5,4eeba8074325fb450c1cddd731431cc4"
]
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-23T09:49:05.091671"
}
}
5 changes: 5 additions & 0 deletions modules/nf-core/tiara/tiara/tests/nextflow.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
process {
withName: "test_tiara_tiara:TIARA_TIARA" {
ext.args = "--tf bac"
}
}
3 changes: 0 additions & 3 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1563,9 +1563,6 @@ tailfindr:
tbprofiler/profile:
- modules/nf-core/tbprofiler/profile/**
- tests/modules/nf-core/tbprofiler/profile/**
tiara/tiara:
- modules/nf-core/tiara/tiara/**
- tests/modules/nf-core/tiara/tiara/**
topas/gencons:
- modules/nf-core/topas/gencons/**
- tests/modules/nf-core/topas/gencons/**
Expand Down
15 changes: 0 additions & 15 deletions tests/modules/nf-core/tiara/tiara/main.nf

This file was deleted.

9 changes: 0 additions & 9 deletions tests/modules/nf-core/tiara/tiara/nextflow.config

This file was deleted.

16 changes: 0 additions & 16 deletions tests/modules/nf-core/tiara/tiara/test.yml

This file was deleted.

0 comments on commit 0f7ca5c

Please sign in to comment.