Skip to content

Commit

Permalink
nf-test for module fastqscan (#4097)
Browse files Browse the repository at this point in the history
Co-authored-by: Sateesh_Peri <33637490+sateeshperi@users.noreply.github.com>
  • Loading branch information
koenbossers and sateeshperi authored Oct 18, 2023
1 parent 977d17c commit 5709153
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 4 deletions.
35 changes: 35 additions & 0 deletions modules/nf-core/fastqscan/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
nextflow_process {

name "Test Process FASTQSCAN"
script "../main.nf"
process "FASTQSCAN"
tag "fastqscan"
tag "modules"
tag "modules_nfcore"

test("Should run without failures") {

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

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

}

}
33 changes: 33 additions & 0 deletions modules/nf-core/fastqscan/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/fastqscan/tests/tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fastqscan:
- modules/nf-core/fastqscan/**
4 changes: 0 additions & 4 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1196,10 +1196,6 @@ fastqc:
- modules/nf-core/fastqc/**
- tests/modules/nf-core/fastqc/**

fastqscan:
- modules/nf-core/fastqscan/**
- tests/modules/nf-core/fastqscan/**

fasttree:
- modules/nf-core/fasttree/**
- tests/modules/nf-core/fasttree/**
Expand Down

0 comments on commit 5709153

Please sign in to comment.