Forum Discussion

vytukaz's avatar
vytukaz
New Contributor
4 years ago

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: 

 

  • aslakhellesoy's avatar
    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"}

     

    • vytukaz's avatar
      vytukaz
      New Contributor

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

      • vytukaz's avatar
        vytukaz
        New Contributor

        console reports look like this: 

        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?