From 9391ca929f9c570199f6827c3a6226765f1aa761 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Mon, 1 Oct 2018 16:14:49 +0300 Subject: [PATCH] Create testOutputExternal before writing to a file in it --- backend.native/tests/build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/backend.native/tests/build.gradle b/backend.native/tests/build.gradle index e34a17348fb..c729b96a48c 100644 --- a/backend.native/tests/build.gradle +++ b/backend.native/tests/build.gradle @@ -158,6 +158,7 @@ task resultsTask() { def output = ["statistics": statistics, "tests": results] def json = JsonOutput.toJson(output) def reportFile = new File(testOutputExternal, "results.json") + testOutputExternal.mkdirs() reportFile.write(JsonOutput.prettyPrint(json)) println("DONE.\n\n" + "TOTAL: $statistics.total\n" +