Skip to content

Commit

Permalink
Use Gradle plugin jvm-test-suite
Browse files Browse the repository at this point in the history
  • Loading branch information
guillermocalvo committed Dec 29, 2023
1 parent 0371578 commit bc97e45
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
1 change: 1 addition & 0 deletions result-lazy/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

plugins {
id 'java-library'
id 'jvm-test-suite'
id 'com.diffplug.spotless'
id 'jacoco'
id 'org.sonarqube'
Expand Down
24 changes: 16 additions & 8 deletions result-lazy/test.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
// Use JUnit Platform to execute the tests
tasks.named('test') {
useJUnitPlatform()
}

// Configure test dependencies
dependencies {
testRuntimeOnly libs.bundles.test.runtime
testImplementation libs.bundles.test.implementation
// Configure test suite
testing {
suites {
test {
useJUnitJupiter()
dependencies {
//runtimeOnly libs.bundles.test.runtime
runtimeOnly libs.junit.jupiter.engine
//implementation libs.bundles.test.implementation
implementation libs.assertj.core
implementation libs.junit.jupiter.api
implementation libs.result.core
implementation libs.result.assertj
}
}
}
}

0 comments on commit bc97e45

Please sign in to comment.