Skip to content

Commit 26f9884

Browse files
committed
update modules test assertions
closes #3737
1 parent c5af93a commit 26f9884

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

nf_core/module-template/tests/main.nf.test.j2

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,12 @@ nextflow_process {
3838
}
3939

4040
then {
41+
assert process.success
4142
assertAll(
42-
{ assert process.success },
43-
{ assert snapshot(process.out).match() }
43+
{ assert snapshot(
44+
process.out,
45+
path(process.out.versions[0]).yaml
46+
).match() }
4447
//TODO nf-core: Add all required assertions to verify the test output.
4548
// See https://nf-co.re/docs/contributing/tutorials/nf-test_assertions for more information and examples.
4649
)
@@ -70,10 +73,12 @@ nextflow_process {
7073
}
7174

7275
then {
76+
assert process.success
7377
assertAll(
74-
{ assert process.success },
75-
{ assert snapshot(process.out).match() }
76-
//TODO nf-core: Add all required assertions to verify the test output.
78+
{ assert snapshot(
79+
process.out,
80+
path(process.out.versions[0]).yaml
81+
).match() }
7782
)
7883
}
7984

0 commit comments

Comments
 (0)