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

后端 未结 4 703
囚心锁ツ
囚心锁ツ 2021-01-16 06:01

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 th

4条回答
  •  有刺的猬
    2021-01-16 06:28

    First of all in runner file we need to provide following plugin as follows: plugin= {"json:target/cucumber.json" }

    Now in Jenkins job, in "post build" section during configuration, add cucumber reports, click on advanced option and provide 'target' text in "JSON Reports Path" text field. Save the job, it will run and will work fine.

    Note: target text is the name of folder which we have provided in runner file for generating reports in Json, also cucumber report plugin works on json so need to generate report in json.

提交回复
热议问题