Unable to generate cucumber reports in jenkins. net.masterthought.cucumber.ValidationException: None report file was added

我怕爱的太早我们不能终老 提交于 2019-12-01 13:25:06

问题


I am using jenkins to run jobs that uses maven with cucumber . my jobs are running succesfully. I have also managed the plugin Cucumber report in jenkins. But when i view the report i am getting the message as shown in below picture.

I have tried to install various plugins like Jenkins plugin, standalone but with no joy. These are shown as options in the bottom right of the report.

Any clue is helpful. I have tried to check this error in stackover flow also. I didnt get any clue

I could see the reports file in xml which is created by surefire plugin. Any way i can achive reporting part in my project


回答1:


I managed to get reports in jenkins now.

Previously Jenkins is unable to find the json file in my project.

I have set the path of json file as target and i could able to see the reports.




回答2:


This might help for those who are looking for answer.

@CucumberOptions(
        features= "C:\\Users\\dd pc\\workspace\\PracticeCucumber\\src\\main\\java\\com\\qa\\feature\\Test.feature",
        glue= {"com\\qa\\stepDefinition"},
        format= {"pretty","html:test-output_1",
                "json:target/cucumber-reports/CucumberTestReport.json"},
        plugin = ("json:target/cucumber-reports/CucumberTestReport.json"),
        monochrome= true,
        dryRun= false

        )


来源:https://stackoverflow.com/questions/40585983/unable-to-generate-cucumber-reports-in-jenkins-net-masterthought-cucumber-valid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!