From ec2576e63facb6097a11e230be680a0207a26983 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Sat, 24 Dec 2016 02:49:39 +0100 Subject: [PATCH] Integration test task --- .../Gradle/spring-jpa-persistence/build.gradle | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/SpringJava/Gradle/spring-jpa-persistence/build.gradle b/SpringJava/Gradle/spring-jpa-persistence/build.gradle index fd50eb9..f49e23f 100644 --- a/SpringJava/Gradle/spring-jpa-persistence/build.gradle +++ b/SpringJava/Gradle/spring-jpa-persistence/build.gradle @@ -96,6 +96,17 @@ dependencies { testCompile('mysql:mysql-connector-java:6.0.5') } +sourceSets { + integTest { + compileClasspath += main.output + test.output + runtimeClasspath += main.output + test.output + } +} + +configurations { + integTestCompile.extendsFrom testCompile + integTestRuntime.extendsFrom testRuntime +} test { testLogging { @@ -109,6 +120,19 @@ test { } } +task integTest(type: Test) { + // dependsOn startApp + // finalizedBy stopApp + + testClassesDir = sourceSets.integTest.output.classesDir + classpath = sourceSets.integTest.runtimeClasspath + + testLogging { + events "PASSED", "FAILED", "SKIPPED" + } + + // mustRunAfter test +} querydsl { library = 'com.querydsl:querydsl-apt:4.1.3' -- 2.1.4