From: Gustavo Martin Morcuende Date: Fri, 30 Dec 2016 05:06:53 +0000 (+0100) Subject: Gradle integTest task depending on default check task X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=c48a1acccc2bdf07ad0e184ea858d10a113c17d3;p=JavaForFun Gradle integTest task depending on default check task --- diff --git a/SpringJava/Gradle/spring-jpa-persistence/build-integTest.gradle b/SpringJava/Gradle/spring-jpa-persistence/build-integTest.gradle index e5fa060..4b3913d 100644 --- a/SpringJava/Gradle/spring-jpa-persistence/build-integTest.gradle +++ b/SpringJava/Gradle/spring-jpa-persistence/build-integTest.gradle @@ -14,6 +14,8 @@ configurations { task integTest(type: Test) { // dependsOn startApp // finalizedBy stopApp + description = 'Runs integration tests'; + group = 'verification'; testClassesDir = sourceSets.integTest.output.classesDir classpath = sourceSets.integTest.runtimeClasspath @@ -25,7 +27,6 @@ task integTest(type: Test) { // mustRunAfter test } - integTest.doFirst { // It is required in order to run data bases in random ports. // We need it for running tests from IDE and from command console but @@ -43,3 +44,5 @@ dockerCompose { removeContainers = true buildBeforeUp = false } + +project.tasks.check.dependsOn(integTest)