Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
WhalleyT committed Nov 8, 2024
1 parent dff78ae commit b8225d6
Show file tree
Hide file tree
Showing 5 changed files with 145 additions and 0 deletions.
29 changes: 29 additions & 0 deletions tests/subworkflows/decontamination.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
nextflow_workflow {

name "Test Workflow decontaminate"
script "subworkflows/decontamination.nf"
workflow "decontaminate"

test("Should run without failures") {

when {
params {
// define parameters here. Example:
// outdir = "tests/results"
}
workflow {
"""
// define inputs of the workflow here. Example:
// input[0] = file("test-file.txt")
"""
}
}

then {
assert workflow.success
assert snapshot(workflow.out).match()
}

}

}
29 changes: 29 additions & 0 deletions tests/workflows/clockwork.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
nextflow_workflow {

name "Test Workflow clockwork"
script "workflows/clockwork.nf"
workflow "clockwork"

test("Should run without failures") {

when {
params {
// define parameters here. Example:
// outdir = "tests/results"
}
workflow {
"""
// define inputs of the workflow here. Example:
// input[0] = file("test-file.txt")
"""
}
}

then {
assert workflow.success
assert snapshot(workflow.out).match()
}

}

}
29 changes: 29 additions & 0 deletions tests/workflows/getversion.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
nextflow_workflow {

name "Test Workflow vcfpredict"
script "workflows/getversion.nf"
workflow "vcfpredict"

test("Should run without failures") {

when {
params {
// define parameters here. Example:
// outdir = "tests/results"
}
workflow {
"""
// define inputs of the workflow here. Example:
// input[0] = file("test-file.txt")
"""
}
}

then {
assert workflow.success
assert snapshot(workflow.out).match()
}

}

}
29 changes: 29 additions & 0 deletions tests/workflows/preprocessing.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
nextflow_workflow {

name "Test Workflow preprocessing"
script "workflows/preprocessing.nf"
workflow "preprocessing"

test("Should run without failures") {

when {
params {
// define parameters here. Example:
// outdir = "tests/results"
}
workflow {
"""
// define inputs of the workflow here. Example:
// input[0] = file("test-file.txt")
"""
}
}

then {
assert workflow.success
assert snapshot(workflow.out).match()
}

}

}
29 changes: 29 additions & 0 deletions tests/workflows/vcfpredict.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
nextflow_workflow {

name "Test Workflow vcfpredict"
script "workflows/vcfpredict.nf"
workflow "vcfpredict"

test("Should run without failures") {

when {
params {
// define parameters here. Example:
// outdir = "tests/results"
}
workflow {
"""
// define inputs of the workflow here. Example:
// input[0] = file("test-file.txt")
"""
}
}

then {
assert workflow.success
assert snapshot(workflow.out).match()
}

}

}

0 comments on commit b8225d6

Please sign in to comment.