Skip to content

Commit

Permalink
Added nf-test for emboss/cons (nf-core#6402)
Browse files Browse the repository at this point in the history
  • Loading branch information
GallVp authored Aug 28, 2024
1 parent 6df93eb commit 5c640d7
Show file tree
Hide file tree
Showing 6 changed files with 129 additions and 32 deletions.
57 changes: 57 additions & 0 deletions modules/nf-core/emboss/cons/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@

nextflow_process {

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

tag "modules"
tag "modules_nfcore"
tag "emboss"
tag "emboss/cons"

test("test-emboss-cons") {

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

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

test("test-emboss-cons-stub") {
options '-stub'
when {
process {
"""
input[0] = [
[ id:'test', single_end:false ], // meta map
file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/alignment/all_sites.fas', checkIfExists: true)
]
"""
}
}

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

}
72 changes: 72 additions & 0 deletions modules/nf-core/emboss/cons/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"test-emboss-cons-stub": {
"content": [
{
"0": [
[
{
"id": "test",
"single_end": false
},
"test.fa:md5,d41d8cd98f00b204e9800998ecf8427e"
]
],
"1": [
"versions.yml:md5,3495d4763506d986454c42f631314776"
],
"consensus": [
[
{
"id": "test",
"single_end": false
},
"test.fa:md5,d41d8cd98f00b204e9800998ecf8427e"
]
],
"versions": [
"versions.yml:md5,3495d4763506d986454c42f631314776"
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-28T13:11:24.452798"
},
"test-emboss-cons": {
"content": [
{
"0": [
[
{
"id": "test",
"single_end": false
},
"test.fa:md5,af060c54c3f15b1a376048eadf9344ec"
]
],
"1": [
"versions.yml:md5,3495d4763506d986454c42f631314776"
],
"consensus": [
[
{
"id": "test",
"single_end": false
},
"test.fa:md5,af060c54c3f15b1a376048eadf9344ec"
]
],
"versions": [
"versions.yml:md5,3495d4763506d986454c42f631314776"
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-28T13:11:19.557103"
}
}
3 changes: 0 additions & 3 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,6 @@ elprep/merge:
elprep/split:
- modules/nf-core/elprep/split/**
- tests/modules/nf-core/elprep/split/**
emboss/cons:
- modules/nf-core/emboss/cons/**
- tests/modules/nf-core/emboss/cons/**
emboss/revseq:
- modules/nf-core/emboss/revseq/**
- tests/modules/nf-core/emboss/revseq/**
Expand Down
15 changes: 0 additions & 15 deletions tests/modules/nf-core/emboss/cons/main.nf

This file was deleted.

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

This file was deleted.

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

This file was deleted.

0 comments on commit 5c640d7

Please sign in to comment.