Skip to content

Commit

Permalink
Update tests to include output paths
Browse files Browse the repository at this point in the history
  • Loading branch information
adamrtalbot committed Aug 18, 2023
1 parent eff96fb commit c45ee1f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 14 deletions.
9 changes: 3 additions & 6 deletions tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ nextflow_pipeline {
assert workflow.trace.tasks().size() == 13
assert workflow.trace.succeeded().size() == 12
assert workflow.trace.failed().size() == 1
assert snapshot(workflow.out).match()
assert snapshot(workflow.out, path("work/outputs").list()).match()
}

}
Expand All @@ -36,13 +36,11 @@ nextflow_pipeline {
assert workflow.trace.tasks().size() == 12
assert workflow.trace.succeeded().size() == 11
assert workflow.trace.failed().size() == 1
assert snapshot(workflow.out).match()
assert snapshot(workflow.out, path("work/outputs").list()).match()
}

}

<<<<<<< HEAD
=======

test("Should only run one process") {

Expand All @@ -58,12 +56,11 @@ nextflow_pipeline {
assert workflow.trace.tasks().size() == 1
assert workflow.trace.succeeded().size() == 1
assert workflow.trace.failed().size() == 0
assert snapshot(workflow.out).match()
assert snapshot(workflow.out, path("work/outputs").list()).match()
}

}

>>>>>>> a228794 (Add selective running of tests)
test("Should publish to alternative directory") {

when {
Expand Down
37 changes: 29 additions & 8 deletions tests/main.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,22 @@

}
],
"timestamp": "2023-08-18T10:59:43+0000"
"timestamp": "2023-08-18T11:05:34+0000"
},
"Should skip a process": {
"content": [
{

}
},
[
[
"test1.txt:md5,d41d8cd98f00b204e9800998ecf8427e",
"test2.txt:md5,d41d8cd98f00b204e9800998ecf8427e"
],
"test.txt:md5,d41d8cd98f00b204e9800998ecf8427e"
]
],
"timestamp": "2023-08-18T10:59:43+0000"
"timestamp": "2023-08-18T11:05:34+0000"
},
"Should publish to alternative directory": {
"content": [
Expand All @@ -28,22 +35,36 @@
"test.txt:md5,d41d8cd98f00b204e9800998ecf8427e"
]
],
"timestamp": "2023-08-18T10:59:43+0000"
"timestamp": "2023-08-18T11:05:34+0000"
},
"Should only run one process": {
"content": [
{

}
},
[
[
"test1.txt:md5,d41d8cd98f00b204e9800998ecf8427e",
"test2.txt:md5,d41d8cd98f00b204e9800998ecf8427e"
],
"test.txt:md5,d41d8cd98f00b204e9800998ecf8427e"
]
],
"timestamp": "2023-08-18T10:59:43+0000"
"timestamp": "2023-08-18T11:05:34+0000"
},
"Should run without failures": {
"content": [
{

}
},
[
[
"test1.txt:md5,d41d8cd98f00b204e9800998ecf8427e",
"test2.txt:md5,d41d8cd98f00b204e9800998ecf8427e"
],
"test.txt:md5,d41d8cd98f00b204e9800998ecf8427e"
]
],
"timestamp": "2023-08-18T10:59:43+0000"
"timestamp": "2023-08-18T11:05:34+0000"
}
}

0 comments on commit c45ee1f

Please sign in to comment.