From 9abcfe56ea91014b0f1bb3636819c0d3e329080a Mon Sep 17 00:00:00 2001 From: SquidDev Date: Wed, 13 May 2020 14:41:50 +0100 Subject: [PATCH] Create the coverage directory before writing Odd that this failed - we should make the directory within the test suite - but let's see if this helps. --- .../java/dan200/computercraft/core/ComputerTestDelegate.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/dan200/computercraft/core/ComputerTestDelegate.java b/src/test/java/dan200/computercraft/core/ComputerTestDelegate.java index 301b1c9a8..f2d2453a7 100644 --- a/src/test/java/dan200/computercraft/core/ComputerTestDelegate.java +++ b/src/test/java/dan200/computercraft/core/ComputerTestDelegate.java @@ -333,6 +333,7 @@ public void after() throws InterruptedException, IOException if( finishedWith != null ) { + REPORT_PATH.getParentFile().mkdirs(); try( BufferedWriter writer = Files.newBufferedWriter( REPORT_PATH.toPath() ) ) { new LuaCoverage( finishedWith ).write( writer );