diff --git a/tests/main.nf.test b/tests/main.nf.test index 6726b68..34c7845 100644 --- a/tests/main.nf.test +++ b/tests/main.nf.test @@ -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() } } @@ -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") { @@ -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 { diff --git a/tests/main.nf.test.snap b/tests/main.nf.test.snap index 95cae91..629cada 100644 --- a/tests/main.nf.test.snap +++ b/tests/main.nf.test.snap @@ -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": [ @@ -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" } }