You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This ("There was an error in the forked process TestEngine with ID 'junit-platform-suite' failed to discover tests" error.") is a classic JUnit 5 library compatibility issue. Unfortunately quite tricky to resolve, but it's essentially a dependency conflict. Make sure all the JUnit libraries have the correct versions (and use Serenity 4.0.31).
Hi All,
When I tried to migrate serenity 3.x.x to 4.x.x with reference to https://serenity-bdd.github.io/docs/tutorials/migrating_to_serenity_4 , I am getting "There was an error in the forked process TestEngine with ID 'junit-platform-suite' failed to discover tests" error.
below is the pom.xml I have updated.
4.0.0
<!– ${cucumber.filter.tags}–>
single-page-html
-->
serenity-reports
post-integration-test
aggregate
Project structure :
test
--java
--com.transunion.qecop
--bizcomp
--stepdefinitions
--steplibrary
--steps
--utilities
--runner
--CucumberTestSuite
--resources
--features
Runner Files
package com.transunion.qecop.runner;
import org.junit.platform.suite.api.ConfigurationParameter;
import org.junit.platform.suite.api.IncludeEngines;
import org.junit.platform.suite.api.SelectClasspathResource;
import org.junit.platform.suite.api.Suite;
import static io.cucumber.junit.platform.engine.Constants.GLUE_PROPERTY_NAME;
import static io.cucumber.junit.platform.engine.Constants.PLUGIN_PROPERTY_NAME;
@suite
@IncludeEngines("cucumber")
//@SelectClasspathResource("com.transunion.qecop.runner")
@SelectClasspathResource("/features/UI")
@ConfigurationParameter(key = PLUGIN_PROPERTY_NAME, value = "io.cucumber.core.plugin.SerenityReporterParallel,pretty,timeline:build/test-results/timeline")
public class CucumberTestSuite {
}
The text was updated successfully, but these errors were encountered: