aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/build.gradle
diff options
context:
space:
mode:
authorDejan Milisavljevic <130993898+dejan-milisavljevic-sonarsource@users.noreply.github.com>2024-02-21 11:20:59 +0100
committersonartech <sonartech@sonarsource.com>2024-02-21 20:02:34 +0000
commit076a7616dda6fb07d9c779a55506494c20bfe9d4 (patch)
treef06cae9cde3c216802d258f9a4bd3a62b87d0355 /sonar-scanner-engine/build.gradle
parentb9fdc3abf600f2ef02c0f4b5321fb7aae0140ac6 (diff)
downloadsonarqube-076a7616dda6fb07d9c779a55506494c20bfe9d4.tar.gz
sonarqube-076a7616dda6fb07d9c779a55506494c20bfe9d4.zip
SONAR-21643 Convert some parameterized tests to Junit 5 (#10666)
Diffstat (limited to 'sonar-scanner-engine/build.gradle')
-rw-r--r--sonar-scanner-engine/build.gradle11
1 files changed, 11 insertions, 0 deletions
diff --git a/sonar-scanner-engine/build.gradle b/sonar-scanner-engine/build.gradle
index 1e29e7f0400..14d071603ef 100644
--- a/sonar-scanner-engine/build.gradle
+++ b/sonar-scanner-engine/build.gradle
@@ -53,12 +53,18 @@ dependencies {
testImplementation 'com.tngtech.java:junit-dataprovider'
testImplementation 'commons-io:commons-io'
testImplementation 'junit:junit'
+ testImplementation 'org.junit.jupiter:junit-jupiter-api'
+ testImplementation 'org.junit.jupiter:junit-jupiter-params'
testImplementation 'org.assertj:assertj-core'
testImplementation 'com.fasterxml.staxmate:staxmate'
testImplementation 'org.hamcrest:hamcrest-core'
testImplementation 'org.mockito:mockito-core'
+ testImplementation 'org.mockito:mockito-junit-jupiter'
api 'org.sonarsource.api.plugin:sonar-plugin-api-test-fixtures'
testImplementation project(':plugins:sonar-xoo-plugin')
+
+ testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
+ testRuntimeOnly 'org.junit.vintage:junit-vintage-engine'
}
license {
@@ -79,3 +85,8 @@ publishing {
}
}
}
+
+test {
+ // Enabling the JUnit Platform (see https://github.com/junit-team/junit5-samples/tree/master/junit5-migration-gradle)
+ useJUnitPlatform()
+}