From bfe59ce8cf624b136ab8301fc2dee4b6d3dcb9a4 Mon Sep 17 00:00:00 2001 From: phouverneyuff Date: Wed, 20 Jan 2016 23:50:32 -0200 Subject: [PATCH] Fix #2663 - join cucumber, integration and unit reports --- app/templates/_build.gradle | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app/templates/_build.gradle b/app/templates/_build.gradle index 4415a65e8e8e..38a39d31005b 100644 --- a/app/templates/_build.gradle +++ b/app/templates/_build.gradle @@ -49,14 +49,28 @@ test { println 'Starting the Unit and Integration test' include '**/*UnitTest*' include '**/*IntTest*' + + reports.html.enabled = false } task cucumberTest(type: Test) { + println 'Starting the Cucumber test' include '**/CucumberTest*' + + reports.html.enabled = false } test.finalizedBy(cucumberTest) +task testReport(type: TestReport) { + println 'Executing testReport' + destinationDir = file("$buildDir/reports/tests") + reportOn test + reportOn cucumberTest +} + +cucumberTest.finalizedBy(testReport) + apply from: 'yeoman.gradle' apply from: 'sonar.gradle' <% if (databaseType == 'sql') { %>