Skip to content

Commit a1e8cb0

Browse files
committed
Fix cucumber tests not executing due to junit 5
1 parent 3755349 commit a1e8cb0

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

pom.xml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153
<dependency>
154154
<groupId>org.junit.jupiter</groupId>
155155
<artifactId>junit-jupiter-engine</artifactId>
156-
<version>5.4.0</version>
156+
<version>5.9.1</version>
157157
<scope>test</scope>
158158
</dependency>
159159
<dependency>
@@ -401,7 +401,7 @@
401401
<plugin>
402402
<groupId>org.apache.maven.plugins</groupId>
403403
<artifactId>maven-surefire-plugin</artifactId>
404-
<version>2.18.1</version>
404+
<version>2.22.0</version>
405405
<configuration>
406406
<skipTests>true</skipTests>
407407
</configuration>
@@ -410,7 +410,14 @@
410410
<plugin>
411411
<groupId>org.apache.maven.plugins</groupId>
412412
<artifactId>maven-failsafe-plugin</artifactId>
413-
<version>3.0.0-M5</version>
413+
<version>3.0.0</version>
414+
<dependencies>
415+
<dependency>
416+
<groupId>org.apache.maven.surefire</groupId>
417+
<artifactId>surefire-junit47</artifactId>
418+
<version>3.0.0</version>
419+
</dependency>
420+
</dependencies>
414421
<configuration>
415422
<includes>
416423
<include>${TEST_RUNNER}</include>

src/e2e-test/java/io.cdap.plugin/tests/TestRunner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
@CucumberOptions(
2727
features = {"src/e2e-test/features"},
2828
glue = {"stepsdesign", "io.cdap.plugin.stepsdesign", "io.cdap.plugin.hooks"},
29-
tags = {"@Oracle"}, monochrome = true,
29+
tags = {"@ORACLE_SOURCE"}, monochrome = true,
3030
plugin = {"pretty", "html:target/cucumber-html-report", "json:target/cucumber-reports/cucumber.json",
3131
"junit:target/cucumber-reports/cucumber.xml"}
3232
)

0 commit comments

Comments
 (0)