Ask a Question

No reports

vytukaz
New Contributor

No reports

after test run i am not getting reports, just console output

my TestRunner:

package testRunner;

import io.cucumber.junit.Cucumber;
import io.cucumber.junit.CucumberOptions;
import org.junit.runner.RunWith;

@RunWith(Cucumber.class)
@CucumberOptions(
plugin = {"pretty\",\"html:target/test-output\", \"json:target/cucumber.json\", \"junit:target/cucumber.xml"},
features = "features",
monochrome = true,
glue = {"steps"}
)

public class TestRunner {
}

 project structure: 

vytukaz_0-1631106657243.png

 

3 REPLIES 3
aslakhellesoy
SmartBear Alumni (Retired)

Your plugin list is wrong. You have a single string with escaped quotes. Instead, try this:

plugin = {"pretty","html:target/test-output", "json:target/cucumber.json", "junit:target/cucumber.xml"}

 

------
I'm the creator and lead developer of Cucumber Open.

I have tried your proposed solution. but nothing was created in target directory. only results are still in console only

console reports look like this: 

vytukaz_0-1631628278516.png

so, it looks like framework is not looking at test runner at all. where might be the problem? project structure or somewhere I have specifically point out to create reports?

cancel
Showing results for 
Search instead for 
Did you mean: