@@ -7,10 +7,10 @@ Add the `cucumber-junit-platform-engine` dependency to your `pom.xml`:
77
88``` xml
99<dependency >
10- <groupId >io.cucumber</groupId >
11- <artifactId >cucumber-junit-platform-engine</artifactId >
12- <version >${cucumber.version}</version >
13- <scope >test</scope >
10+ <groupId >io.cucumber</groupId >
11+ <artifactId >cucumber-junit-platform-engine</artifactId >
12+ <version >${cucumber.version}</version >
13+ <scope >test</scope >
1414</dependency >
1515```
1616
@@ -57,48 +57,48 @@ Add the following to your `pom.xml`:
5757
5858``` xml
5959<dependencies >
60- ....
61- <dependency >
62- <groupId >org.junit.platform</groupId >
63- <artifactId >junit-platform-launcher </artifactId >
64- <version >${junit-platform.version}</version >
65- <scope >test</scope >
66- </dependency >
60+ ....
61+ <dependency >
62+ <groupId >org.junit.platform</groupId >
63+ <artifactId >junit-platform-console </artifactId >
64+ <version >${junit-platform.version}</version >
65+ <scope >test</scope >
66+ </dependency >
6767</dependencies >
6868
6969<build >
70- <plugins >
71- <plugin >
72- <groupId >org.apache.maven.plugins</groupId >
73- <artifactId >maven-antrun-plugin</artifactId >
74- <executions >
75- <execution >
76- <!-- Work around. Surefire does not use JUnit's Test Engine discovery functionality -->
77- <id >CLI-test</id >
78- <phase >integration-test</phase >
79- <goals >
80- <goal >run</goal >
81- </goals >
82- <configuration >
83- <target >
84- <echo message =" Running JUnit Platform CLI" />
85- <java classname =" org.junit.platform.console.ConsoleLauncher"
86- fork =" true"
87- failonerror =" true"
88- newenvironment =" true"
89- maxmemory =" 512m"
90- classpathref =" maven.test.classpath" >
91- <arg value =" --include-engine" />
92- <arg value =" cucumber" />
93- <arg value =" --scan-classpath" />
94- <arg value =" ${project.build.testOutputDirectory}" />
95- </java >
96- </target >
97- </configuration >
98- </execution >
99- </executions >
100- </plugin >
101- </plugins >
70+ <plugins >
71+ <plugin >
72+ <groupId >org.apache.maven.plugins</groupId >
73+ <artifactId >maven-antrun-plugin</artifactId >
74+ <executions >
75+ <execution >
76+ <!-- Work around. Surefire does not use JUnit's Test Engine discovery functionality -->
77+ <id >CLI-test</id >
78+ <phase >integration-test</phase >
79+ <goals >
80+ <goal >run</goal >
81+ </goals >
82+ <configuration >
83+ <target >
84+ <echo message =" Running JUnit Platform CLI" />
85+ <java classname =" org.junit.platform.console.ConsoleLauncher"
86+ fork =" true"
87+ failonerror =" true"
88+ newenvironment =" true"
89+ maxmemory =" 512m"
90+ classpathref =" maven.test.classpath" >
91+ <arg value =" --include-engine" />
92+ <arg value =" cucumber" />
93+ <arg value =" --scan-classpath" />
94+ <arg value =" ${project.build.testOutputDirectory}" />
95+ </java >
96+ </target >
97+ </configuration >
98+ </execution >
99+ </executions >
100+ </plugin >
101+ </plugins >
102102</build >
103103```
104104#### Use the Gradle JavaExec task ####
0 commit comments