Open NandhakumarSubbaiah opened 8 months ago
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. <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<!–${cucumber.filter.tags} –>
<!–generateRunners –>
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 { }