Skip to content

Commit 7789dbe

Browse files
committed
Enhance testing configuration by adding annotation processor and updating test dependencies
1 parent b9bb1ac commit 7789dbe

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,15 @@ dependencies {
4747
// Lombok dependencies for test classes
4848
testCompileOnly "org.projectlombok:lombok:$lombokVersion"
4949
testAnnotationProcessor "org.projectlombok:lombok:$lombokVersion"
50+
testAnnotationProcessor "org.springframework.boot:spring-boot-configuration-processor:$springBootVersion"
5051

5152
// Testing dependencies
5253
testImplementation "org.springframework.boot:spring-boot-starter-web:$springBootVersion"
5354
testImplementation "org.springframework.boot:spring-boot-starter-test:$springBootVersion"
5455
testImplementation "org.springframework.boot:spring-boot-starter-actuator:$springBootVersion"
55-
5656
testImplementation 'org.junit.jupiter:junit-jupiter:5.13.0'
5757
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
58+
5859
}
5960

6061
test {
@@ -99,6 +100,7 @@ tasks.register('testAll') {
99100

100101
// Ensure the default 'test' task triggers both test tasks
101102
tasks.test {
103+
useJUnitPlatform()
102104
dependsOn(tasks.named('testAll'))
103105
}
104106

0 commit comments

Comments
 (0)