diff options
author | Dejan Milisavljevic <130993898+dejan-milisavljevic-sonarsource@users.noreply.github.com> | 2024-02-22 15:15:56 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-02-22 20:02:53 +0000 |
commit | 02ba3396555695a7577f23486b1e4c0b3c67b978 (patch) | |
tree | 8156e6b229b4e4f130cfcdb60e11480055a1ef13 /server/sonar-server-common | |
parent | c3503992fbe7d16e36f2fd60792d45226dfce7ee (diff) | |
download | sonarqube-02ba3396555695a7577f23486b1e4c0b3c67b978.tar.gz sonarqube-02ba3396555695a7577f23486b1e4c0b3c67b978.zip |
SONAR-21643 Convert some IT tests to Junit 5 (#10672)
Diffstat (limited to 'server/sonar-server-common')
-rw-r--r-- | server/sonar-server-common/build.gradle | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/server/sonar-server-common/build.gradle b/server/sonar-server-common/build.gradle index 64183060fd8..05b34279c0e 100644 --- a/server/sonar-server-common/build.gradle +++ b/server/sonar-server-common/build.gradle @@ -39,6 +39,7 @@ dependencies { testImplementation 'org.apache.logging.log4j:log4j-core' testImplementation 'org.assertj:assertj-core' testImplementation 'org.hamcrest:hamcrest-core' + testImplementation 'org.junit.jupiter:junit-jupiter-api' testImplementation 'org.mockito:mockito-core' testImplementation 'org.sonarsource.api.plugin:sonar-plugin-api-test-fixtures' testImplementation testFixtures(project(':server:sonar-db-dao')) @@ -55,4 +56,13 @@ dependencies { testFixturesImplementation 'org.codelibs.elasticsearch.module:analysis-common' testFixturesImplementation 'org.codelibs.elasticsearch.module:reindex' testFixturesImplementation 'org.elasticsearch:mocksocket' + testFixturesImplementation 'org.junit.jupiter:junit-jupiter-api' + + testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine' + testRuntimeOnly 'org.junit.vintage:junit-vintage-engine' +} + +test { + // Enabling the JUnit Platform (see https://github.com/junit-team/junit5-samples/tree/master/junit5-migration-gradle) + useJUnitPlatform() } |