Closed raktim1988 closed 3 years ago
You have a mix of conflicting dependency versions. Have a look at https://github.com/serenity-bdd/serenity-cucumber-starter
Thanks, looks better now with small adjustments in the pom.xml , however what I see now is : Test results for 0 tests generated in 2.2 secs in directory: that means the tests are not creating a report or being captured. Could you help ?
This seems like a usage problem - http://gitter.im/serenity-bdd/serenity-core is probably a better place to ask.
I fixed the issue , for reference pls look in to : https://github.com/raktim1988/MyTestSerenitywithCucumberBDD6.git
Runner Class:
package com.automation.test;
import cucumber.api.junit.Cucumber; import net.serenitybdd.cucumber.CucumberWithSerenity; import org.junit.runner.RunWith; import cucumber.api.CucumberOptions; import cucumber.api.SnippetType; import org.junit.runners.model.InitializationError;
@RunWith(CucumberWithSerenity.class) @CucumberOptions(
public class RunnerTest { public static void generateReport(){
}
Pom.xml:
<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">
Please help!