From 9a8879704ce547dfc3fbaf2b6a25aa9000346ad8 Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Sat, 26 Mar 2022 15:40:41 +0100 Subject: [PATCH] [SUREFIRE-2024] Replace testng-junit5 by testng-engine --- .../site/apt/examples/junit-platform.apt.vm | 21 ++- .../src/test/resources/junit5-testng/pom.xml | 124 +++++++++--------- 2 files changed, 70 insertions(+), 75 deletions(-) diff --git a/maven-surefire-plugin/src/site/apt/examples/junit-platform.apt.vm b/maven-surefire-plugin/src/site/apt/examples/junit-platform.apt.vm index 5c02c6d1c8..b413e58379 100644 --- a/maven-surefire-plugin/src/site/apt/examples/junit-platform.apt.vm +++ b/maven-surefire-plugin/src/site/apt/examples/junit-platform.apt.vm @@ -349,37 +349,32 @@ Using JUnit 5 Platform +---+ -** How to run TestNG tests within Jupiter engine +** How to run TestNG tests within the JUnit Platform You can run TestNG tests combined with JUnit5 tests. For more information see this - {{{https://github.com/apache/maven-surefire/tree/master/surefire-its/src/test/resources/junit5-testng}example}}. + {{{https://github.com/apache/maven-surefire/tree/master/surefire-its/src/test/resources/junit5-testng}example}} + and {{{https://github.com/junit-team/testng-engine}TestNG Engine for the JUnit Platform}}. +---+ org.testng testng - 7.1.0 + 7.4.0 test - com.github.testng-team - testng-junit5 - 0.0.1 + org.junit.support + testng-engine + 1.0.1 test - - - org.junit.platform - junit-platform-engine - - org.junit.jupiter junit-jupiter-api - 5.6.2 + 5.8.2 test diff --git a/surefire-its/src/test/resources/junit5-testng/pom.xml b/surefire-its/src/test/resources/junit5-testng/pom.xml index c18e4649c6..2f8cf9d5ab 100644 --- a/surefire-its/src/test/resources/junit5-testng/pom.xml +++ b/surefire-its/src/test/resources/junit5-testng/pom.xml @@ -21,74 +21,74 @@ - 4.0.0 + 4.0.0 - org.example - testng-junit5 - 1.0-SNAPSHOT + org.example + testng-junit5 + 1.0-SNAPSHOT - - UTF-8 - ${java.specification.version} - ${java.specification.version} - + Project with mixed TestNG and JUnit5 tests. - + + UTF-8 + ${java.specification.version} + ${java.specification.version} + + + + + org.testng + testng + 7.4.0 + test + + + org.junit.support + testng-engine + 1.0.1 + test + + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${surefire.version} + + + + + + + + junit5-engine + - org.testng - testng - 7.1.0 - test + org.junit.jupiter + junit-jupiter-engine + + + 5.7.2 + test + + + + junit5-api + - com.github.testng-team - testng-junit5 - 0.0.1 - test - - - org.junit.platform - junit-platform-engine - - + org.junit.jupiter + junit-jupiter-api + + + 5.8.2 + test - - - - - - - org.apache.maven.plugins - maven-surefire-plugin - ${surefire.version} - - - - - - - - junit5-engine - - - org.junit.jupiter - junit-jupiter-engine - 5.6.2 - test - - - - - junit5-api - - - org.junit.jupiter - junit-jupiter-api - 5.6.2 - test - - - - + + +