Skip to content

Commit

Permalink
Always publish the test report
Browse files Browse the repository at this point in the history
  • Loading branch information
ketan committed Jun 26, 2018
1 parent b491695 commit 0b4e8ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
9 changes: 4 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0b4e8ab

Please sign in to comment.