Create testOutputExternal before writing to a file in it

This commit is contained in:
Ilya Gorbunov
2018-10-01 16:14:49 +03:00
committed by Pavel Punegov
parent 058d691f5a
commit 9391ca929f
+1
View File
@@ -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" +