Skip to content

Commit

Permalink
Fix cucumber tests not executing due to junit 5
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitjnn committed Apr 13, 2023
1 parent 3755349 commit a1e8cb0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.4.0</version>
<version>5.9.1</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -401,7 +401,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<version>2.22.0</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
Expand All @@ -410,7 +410,14 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.0.0-M5</version>
<version>3.0.0</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit47</artifactId>
<version>3.0.0</version>
</dependency>
</dependencies>
<configuration>
<includes>
<include>${TEST_RUNNER}</include>
Expand Down
2 changes: 1 addition & 1 deletion src/e2e-test/java/io.cdap.plugin/tests/TestRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
@CucumberOptions(
features = {"src/e2e-test/features"},
glue = {"stepsdesign", "io.cdap.plugin.stepsdesign", "io.cdap.plugin.hooks"},
tags = {"@Oracle"}, monochrome = true,
tags = {"@ORACLE_SOURCE"}, monochrome = true,
plugin = {"pretty", "html:target/cucumber-html-report", "json:target/cucumber-reports/cucumber.json",
"junit:target/cucumber-reports/cucumber.xml"}
)
Expand Down

0 comments on commit a1e8cb0

Please sign in to comment.