Skip to content

Commit

Permalink
nf-test for module sourmash/sketch (nf-core#4104)
Browse files Browse the repository at this point in the history
* nf-test for module sourmash/sketch

* add "sourmash" and "sourmash/sketch" tags

Co-authored-by: Sateesh_Peri <33637490+sateeshperi@users.noreply.github.com>

---------

Co-authored-by: Sateesh_Peri <33637490+sateeshperi@users.noreply.github.com>
  • Loading branch information
2 people authored and laramiellindsey committed Oct 18, 2023
1 parent 86edf75 commit 1975ed7
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 4 deletions.
36 changes: 36 additions & 0 deletions modules/nf-core/sourmash/sketch/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
nextflow_process {

name "Test Process SOURMASH_SKETCH"
script "../main.nf"
process "SOURMASH_SKETCH"
tag "sourmash"
tag "sourmash/sketch"
tag "modules"
tag "modules_nfcore"

test("Should run without failures") {

when {
params {
outdir = "$outputDir"
}
process {
"""
input[0] = [
[ id:'test', single_end:false ], // meta map
file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
]
"""
}
}

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

}

}
33 changes: 33 additions & 0 deletions modules/nf-core/sourmash/sketch/tests/main.nf.test.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions modules/nf-core/sourmash/sketch/tests/tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sourmash/sketch:
- modules/nf-core/sourmash/sketch/**
4 changes: 0 additions & 4 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3655,10 +3655,6 @@ sourmash/index:
- modules/nf-core/sourmash/index/**
- tests/modules/nf-core/sourmash/index/**

sourmash/sketch:
- modules/nf-core/sourmash/sketch/**
- tests/modules/nf-core/sourmash/sketch/**

sourmash/taxannotate:
- modules/nf-core/sourmash/taxannotate/**
- tests/modules/nf-core/sourmash/taxannotate/**
Expand Down

0 comments on commit 1975ed7

Please sign in to comment.