Skip to content

Commit

Permalink
chore: Use assertAll in all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Oct 13, 2024
1 parent 55b7bf9 commit e310487
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 17 deletions.
5 changes: 4 additions & 1 deletion modules/local/grohmm/parametertuning/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ nextflow_process {

then {
// FIXME Broken test
assert process.failed
assertAll(
{ assert process.failed },
{ assert snapshot(process.out).match() }
)
}

}
Expand Down
6 changes: 4 additions & 2 deletions modules/local/grohmm/transcriptcalling/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ nextflow_process {
}

then {
// FIXME Broken test
assert process.failed
assertAll(
{ assert process.failed },
{ assert snapshot(process.out).match() }
)
}

}
Expand Down
18 changes: 12 additions & 6 deletions subworkflows/local/grohmm/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ nextflow_workflow {
}

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

}
Expand All @@ -55,8 +57,10 @@ nextflow_workflow {
}

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

}
Expand Down Expand Up @@ -84,8 +88,10 @@ nextflow_workflow {
}

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

}
Expand Down
22 changes: 14 additions & 8 deletions workflows/tests/aligner/bwa.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,13 @@ nextflow_pipeline {
}

then {
assert workflow.success
assert snapshot(
workflow.trace.tasks().size(),
).match()
assertAll(
{ assert workflow.success },
{ assert snapshot(
workflow.trace.tasks().size(),
).match()
}
)
}
}

Expand All @@ -91,10 +94,13 @@ nextflow_pipeline {
}

then {
assert workflow.success
assert snapshot(
workflow.trace.tasks().size(),
).match()
assertAll(
{ assert workflow.success },
{ assert snapshot(
workflow.trace.tasks().size(),
).match()
}
)
}

}
Expand Down

0 comments on commit e310487

Please sign in to comment.