Skip to content

Commit

Permalink
test: Write basic STAR test
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Apr 25, 2024
1 parent 749d703 commit ca68e9b
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
24 changes: 24 additions & 0 deletions workflows/tests/star.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
nextflow_pipeline {

name "Test Workflow main.nf with STAR"
script "../../main.nf"
tag "aligner"
tag "star"

test("Should run with STAR (default)") {

when {
params {
outdir = "$outputDir"
aligner = "star"
}
}

then {
assert workflow.success
assert snapshot(
workflow.trace.tasks().size(),
).match()
}
}
}
12 changes: 12 additions & 0 deletions workflows/tests/star.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"Should run with STAR (default)": {
"content": [
139
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.03.0"
},
"timestamp": "2024-04-25T17:27:56.772645664"
}
}

0 comments on commit ca68e9b

Please sign in to comment.