Skip to content

Commit

Permalink
Added nf-test for ngmaster
Browse files Browse the repository at this point in the history
  • Loading branch information
GallVp committed Aug 22, 2024
1 parent fe9614c commit e6ef556
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 28 deletions.
32 changes: 32 additions & 0 deletions modules/nf-core/ngmaster/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

nextflow_process {

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

tag "modules"
tag "modules_nfcore"
tag "ngmaster"

test("test-ngmaster") {

when {
process {
"""
input[0] = [ [ id:'test', single_end:false ], // meta map
file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta', checkIfExists: true) ]
"""
}
}

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

}
37 changes: 37 additions & 0 deletions modules/nf-core/ngmaster/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"test-ngmaster": {
"content": [
{
"0": [
[
{
"id": "test",
"single_end": false
},
"test.tsv:md5,cf674474eaf8ac6abfcebce0af0226cf"
]
],
"1": [
"versions.yml:md5,8bfe84554c1457a6074f3c6bba133362"
],
"tsv": [
[
{
"id": "test",
"single_end": false
},
"test.tsv:md5,cf674474eaf8ac6abfcebce0af0226cf"
]
],
"versions": [
"versions.yml:md5,8bfe84554c1457a6074f3c6bba133362"
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-23T11:30:44.299736"
}
}
3 changes: 0 additions & 3 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -983,9 +983,6 @@ nextclade/run:
nextgenmap:
- modules/nf-core/nextgenmap/**
- tests/modules/nf-core/nextgenmap/**
ngmaster:
- modules/nf-core/ngmaster/**
- tests/modules/nf-core/ngmaster/**
ngmerge:
- modules/nf-core/ngmerge/**
- tests/modules/nf-core/ngmerge/**
Expand Down
13 changes: 0 additions & 13 deletions tests/modules/nf-core/ngmaster/main.nf

This file was deleted.

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

This file was deleted.

7 changes: 0 additions & 7 deletions tests/modules/nf-core/ngmaster/test.yml

This file was deleted.

0 comments on commit e6ef556

Please sign in to comment.