From a1e8cb002d2650a8f594f54a66a612c7c2a2b95a Mon Sep 17 00:00:00 2001 From: Sumit Jain Date: Thu, 13 Apr 2023 09:43:03 +0530 Subject: [PATCH] Fix cucumber tests not executing due to junit 5 --- pom.xml | 13 ++++++++++--- .../java/io.cdap.plugin/tests/TestRunner.java | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 5f0a95d..79a519b 100644 --- a/pom.xml +++ b/pom.xml @@ -153,7 +153,7 @@ org.junit.jupiter junit-jupiter-engine - 5.4.0 + 5.9.1 test @@ -401,7 +401,7 @@ org.apache.maven.plugins maven-surefire-plugin - 2.18.1 + 2.22.0 true @@ -410,7 +410,14 @@ org.apache.maven.plugins maven-failsafe-plugin - 3.0.0-M5 + 3.0.0 + + + org.apache.maven.surefire + surefire-junit47 + 3.0.0 + + ${TEST_RUNNER} diff --git a/src/e2e-test/java/io.cdap.plugin/tests/TestRunner.java b/src/e2e-test/java/io.cdap.plugin/tests/TestRunner.java index 5c063ed..4659c5d 100644 --- a/src/e2e-test/java/io.cdap.plugin/tests/TestRunner.java +++ b/src/e2e-test/java/io.cdap.plugin/tests/TestRunner.java @@ -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"} )