Skip to content

How to run JUnit 5 @Suite tests via Maven Surefire #2753

Discussion options

You must be logged in to vote

Taking https://github.com/junit-team/junit5-samples/blob/main/junit5-jupiter-starter-maven/pom.xml as a common base and applying the following patch:

Index: junit5-jupiter-starter-maven/pom.xml
===================================================================
diff --git a/junit5-jupiter-starter-maven/pom.xml b/junit5-jupiter-starter-maven/pom.xml
--- a/junit5-jupiter-starter-maven/pom.xml	(revision 0aa3e933a3e90d3d6175c8f1da0c63283348d263)
+++ b/junit5-jupiter-starter-maven/pom.xml	(date 1635318636736)
@@ -31,6 +31,11 @@
 			<artifactId>junit-jupiter</artifactId>
 			<scope>test</scope>
 		</dependency>
+		<dependency>
+			<groupId>org.junit.platform</groupId>
+			<artifactId>junit-plat…

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
1 reply
@ChakotayChou
Comment options

Comment options

You must be logged in to vote
9 replies
@sormuras
Comment options

@praveenreddynarala
Comment options

@floscher
Comment options

@marcphilipp
Comment options

@liujinhui1994
Comment options

Answer selected by marcphilipp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
6 participants
Converted from issue

This discussion was converted from issue #2752 on October 26, 2021 14:18.