Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adamrtalbot committed Apr 19, 2024
1 parent 7ded9aa commit f4eecce
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 28 deletions.
12 changes: 6 additions & 6 deletions tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ nextflow_pipeline{
then {
assertAll(
{ assert workflow.success },
{ assert workflow.trace.tasks().size() == 14 },
{ assert workflow.trace.succeeded().size() == 13 },
{ assert workflow.trace.tasks().size() == 15 },
{ assert workflow.trace.succeeded().size() == 14 },
{ assert workflow.trace.failed().size() == 1 },
{ assert snapshot(workflow, path(params.outdir).list()).match() }
)
Expand All @@ -37,8 +37,8 @@ nextflow_pipeline{
then {
assertAll(
{ assert workflow.success },
{ assert workflow.trace.tasks().size() == 13 },
{ assert workflow.trace.succeeded().size() == 12 },
{ assert workflow.trace.tasks().size() == 14 },
{ assert workflow.trace.succeeded().size() == 13 },
{ assert workflow.trace.failed().size() == 1 },
{ assert snapshot(workflow, path(params.outdir).list()).match() }
)
Expand Down Expand Up @@ -81,8 +81,8 @@ nextflow_pipeline{
then {
assertAll(
{ assert workflow.success },
{ assert workflow.trace.tasks().size() == 14 },
{ assert workflow.trace.succeeded().size() == 13 },
{ assert workflow.trace.tasks().size() == 15 },
{ assert workflow.trace.succeeded().size() == 14 },
{ assert workflow.trace.failed().size() == 1 },
{ assert snapshot(workflow, path("${launchDir}/output").list()).match() }
)
Expand Down
35 changes: 17 additions & 18 deletions tests/main.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
"errorMessage": "",
"trace": {
"tasksFailed": 1,
"tasksCount": 13,
"tasksSucceeded": 12
"tasksCount": 14,
"tasksSucceeded": 13
},
"name": "workflow",
"success": true
},
[
[
"test1.txt:md5,3e7705498e8be60520841409ebc69bc1",
"test2.txt:md5,126a8a51b9d1bbd07fddc65819a542c3",
"test1.txt:md5,d41d8cd98f00b204e9800998ecf8427e",
"test2.txt:md5,d41d8cd98f00b204e9800998ecf8427e"
],
"test.txt:md5,d41d8cd98f00b204e9800998ecf8427e"
]
Expand All @@ -32,7 +32,7 @@
"nf-test": "0.8.4",
"nextflow": "23.10.1"
},
"timestamp": "2024-04-18T17:10:49.052904"
"timestamp": "2024-04-19T09:04:04.680628"
},
"Should publish to alternative directory": {
"content": [
Expand All @@ -49,17 +49,16 @@
"errorMessage": "",
"trace": {
"tasksFailed": 1,
"tasksCount": 14,
"tasksSucceeded": 13
"tasksCount": 15,
"tasksSucceeded": 14
},
"name": "workflow",
"success": true
},
[
[

"test1.txt:md5,3e7705498e8be60520841409ebc69bc1",
"test2.txt:md5,126a8a51b9d1bbd07fddc65819a542c3",
"test1.txt:md5,d41d8cd98f00b204e9800998ecf8427e",
"test2.txt:md5,d41d8cd98f00b204e9800998ecf8427e"
],
"test.txt:md5,d41d8cd98f00b204e9800998ecf8427e"
]
Expand All @@ -68,7 +67,7 @@
"nf-test": "0.8.4",
"nextflow": "23.10.1"
},
"timestamp": "2024-04-18T17:10:53.086666"
"timestamp": "2024-04-19T09:04:08.847329"
},
"Should only run one process": {
"content": [
Expand Down Expand Up @@ -116,24 +115,24 @@
"errorMessage": "",
"trace": {
"tasksFailed": 1,
"tasksCount": 14,
"tasksSucceeded": 13
"tasksCount": 15,
"tasksSucceeded": 14
},
"name": "workflow",
"success": true
},
[
[
"test1.txt:md5,3e7705498e8be60520841409ebc69bc1",
"test2.txt:md5,126a8a51b9d1bbd07fddc65819a542c3",
],
"test1.txt:md5,d41d8cd98f00b204e9800998ecf8427e",
"test2.txt:md5,d41d8cd98f00b204e9800998ecf8427e"
],
"test.txt:md5,d41d8cd98f00b204e9800998ecf8427e"
]
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "23.10.1"
},
"timestamp": "2024-04-18T17:10:47.053474"
"timestamp": "2024-04-19T09:04:02.601858"
}
}
}
2 changes: 1 addition & 1 deletion tests/main.test_create_empty_file.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
},
"timestamp": "2024-04-18T17:19:44.512229"
}
}
}
2 changes: 1 addition & 1 deletion tests/main.test_create_file.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
},
"timestamp": "2024-04-18T17:19:44.512229"
}
}
}
4 changes: 2 additions & 2 deletions tests/main.test_create_folder.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"0": [
[
"test1.txt:md5,3e7705498e8be60520841409ebc69bc1",
"test2.txt:md5,126a8a51b9d1bbd07fddc65819a542c3",
"test2.txt:md5,126a8a51b9d1bbd07fddc65819a542c3"
]
],
"outfolder": [
Expand All @@ -22,4 +22,4 @@
},
"timestamp": "2024-04-18T17:19:42.631931"
}
}
}

0 comments on commit f4eecce

Please sign in to comment.