Skip to content

Commit

Permalink
Add nf-test to local module GTF_FILTER
Browse files Browse the repository at this point in the history
  • Loading branch information
adamrtalbot committed Mar 6, 2024
1 parent 14c8698 commit 1c4033e
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
27 changes: 27 additions & 0 deletions modules/local/gtf_filter/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
nextflow_process {

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

test("Should run without failures") {

when {
process {
"""
input[0] = file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta', checkIfExists: true)
input[1] = file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.gtf', checkIfExists: true)
"""
}
}

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

}

}
25 changes: 25 additions & 0 deletions modules/local/gtf_filter/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"Should run without failures": {
"content": [
{
"0": [
"genome.filtered.gtf:md5,aa8b2aa1e0b5fbbba3b04d471e1b0535"
],
"1": [
"versions.yml:md5,4adf55ec05d247fd6d253459bd80856f"
],
"genome_gtf": [
"genome.filtered.gtf:md5,aa8b2aa1e0b5fbbba3b04d471e1b0535"
],
"versions": [
"versions.yml:md5,4adf55ec05d247fd6d253459bd80856f"
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "23.10.1"
},
"timestamp": "2024-03-06T15:52:37.977802"
}
}

0 comments on commit 1c4033e

Please sign in to comment.