Create testOutputExternal before writing to a file in it
This commit is contained in:
committed by
Pavel Punegov
parent
058d691f5a
commit
9391ca929f
@@ -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" +
|
||||
|
||||
Reference in New Issue
Block a user