diff --git a/pi4micronaut-utils/build.gradle b/pi4micronaut-utils/build.gradle index 85e290f4..65c101ca 100644 --- a/pi4micronaut-utils/build.gradle +++ b/pi4micronaut-utils/build.gradle @@ -27,19 +27,16 @@ dependencies { api 'com.pi4j:pi4j-core:2.4.0' api 'com.pi4j:pi4j-plugin-raspberrypi:2.4.0' api 'com.pi4j:pi4j-plugin-pigpio:2.4.0' + testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.1' + testImplementation 'org.junit.jupiter:junit-jupiter' + testRuntimeOnly 'org.junit.platform:junit-platform-launcher' testImplementation("org.mockito:mockito-core:5.+") testImplementation(platform("org.junit:junit-bom:5.11.0")) - testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.1") - testRuntimeOnly("org.junit.platform:junit-platform-launcher") testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine") testRuntimeOnly("org.junit.vintage:junit-vintage-engine") } -test { - useJUnitPlatform() -} - java { sourceCompatibility = JavaVersion.toVersion("17") targetCompatibility = JavaVersion.toVersion("17") @@ -175,6 +172,13 @@ publishing { useInMemoryPgpKeys(System.getenv('GPG_KEY'), System.getenv('GPG_PASSWORD')) sign publishing.publications.mavenJava } + test{ + useJUnitPlatform() + testLogging { + events "passed", "skipped", "failed" + } + + } }