Skip to content

Commit

Permalink
Rasusa nf test (nf-core#4081)
Browse files Browse the repository at this point in the history
* Initial main.nf.test

* Full nf-test suite for module rasusa

* add "modules" tag to nf-test

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

* Remove tags from tests/config/pytest_modules.yml

---------

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 0deeffc commit dc1f2a7
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 4 deletions.
38 changes: 38 additions & 0 deletions modules/nf-core/rasusa/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
nextflow_process {

name "Test Process RASUSA"
script "../main.nf"
process "RASUSA"
tag "rasusa"
tag "modules"
tag "modules_nfcore"

test("Should run without failures") {

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

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

}

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

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

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

0 comments on commit dc1f2a7

Please sign in to comment.