From 0b4e8ab74814c884ae4d6d115b65690c0f0f3776 Mon Sep 17 00:00:00 2001 From: Ketan Padegaonkar Date: Tue, 26 Jun 2018 09:23:11 +0530 Subject: [PATCH] Always publish the test report --- .gitignore | 1 + build.gradle | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 206d4f0f880..29ff0ca074b 100644 --- a/.gitignore +++ b/.gitignore @@ -240,6 +240,7 @@ spark/spark-base/target/ spark/spark-spa/logs/ spark/spark-spa/out/ spark/spark-spa/target/ +target/ test/http-mocks/out/ test/http-mocks/target/ test/test-addon/out/ diff --git a/build.gradle b/build.gradle index bf0282741f1..582a5292ff7 100644 --- a/build.gradle +++ b/build.gradle @@ -600,16 +600,15 @@ task allTests { thisTask -> finalizedBy 'allTestsJunitHtmlReport' } -task allTestsJunitHtmlReport(type: TestReport) { thisTask -> - dependsOn allTests +task allTestsJunitHtmlReport(type: TestReport) { TestReport thisTask -> group LifecycleBasePlugin.VERIFICATION_GROUP description = "Run all api tests" forAllTask { Test eachTestTask -> - thisTask.reportOn eachTestTask + thisTask.reportOn eachTestTask.binResultsDir + eachTestTask.finalizedBy(thisTask) } - def htmlOutputDir = file("${project.buildDir}/reports/tests/allTests") - destinationDir = htmlOutputDir + destinationDir = file("${project.buildDir}/reports/tests/allTests") } task newApi {