diff --git a/build-logic/commons/src/main/groovy/bisq.java-integration-tests.gradle b/build-logic/commons/src/main/groovy/bisq.java-integration-tests.gradle new file mode 100644 index 0000000000..e6b10b0866 --- /dev/null +++ b/build-logic/commons/src/main/groovy/bisq.java-integration-tests.gradle @@ -0,0 +1,26 @@ +sourceSets { + integrationTest { + compileClasspath += sourceSets.main.output + runtimeClasspath += sourceSets.main.output + } +} + +configurations { + integrationTestImplementation.extendsFrom implementation + integrationTestRuntimeOnly.extendsFrom runtimeOnly +} + +dependencies { + integrationTestImplementation libs.junit.jupiter +} + +tasks.register('integrationTest', Test) { + description = 'Runs integration tests.' + group = 'verification' + + testClassesDirs = sourceSets.integrationTest.output.classesDirs + classpath = sourceSets.integrationTest.runtimeClasspath + shouldRunAfter test + + useJUnitPlatform() +} diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 350badb0ad..a76638e22c 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -99,6 +99,7 @@ jfoenix = { module = "com.jfoenix:jfoenix", version.ref = "jfoenix" } jopt = { module = "net.sf.jopt-simple:jopt-simple", version.ref = "jopt" } jsonrpc4j = { module = "com.github.bisq-network:jsonrpc4j", version.ref = "jsonrpc4j" } +junit-jupiter = { module = 'org.junit.jupiter:junit-jupiter', version.ref = 'junit-jupiter' } junit-jupiter-api = { module = "org.junit.jupiter:junit-jupiter-api", version.ref = "junit-jupiter" } junit-jupiter-params = { module = "org.junit.jupiter:junit-jupiter-params", version.ref = "junit-jupiter" } junit-jupiter-engine = { module = "org.junit.jupiter:junit-jupiter-engine", version.ref = "junit-jupiter" } diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index 8dc60d2673..4ad614144d 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -3247,14 +3247,20 @@ - - - - - - + + + + + + + + + + + + + +