Cucumber generates a report for html:
Generate a report for html:
1, cucumber user_register/-format html-out=/var/www/features_report.html
2, enter http://127.0.0.1/features_report.html in the browser to view the report.
3, others want to enter http://10.0.2.99/features_report.html = > 10.0.2.99 in the browser is the test machine where I run the test program, that is, the test report will be stored in the / var/www/ directory of 10.0.2.99.
4. Configure the config/cucumber.yml file, which is placed in the support directory.
Enter:
Drhel31_cucumber_report:-format progress-format html-out=/var/www/drhel31_cucumber_report.html
Drhel21_cucumber_report:-format progress-format html-out=/var/www/drhel21_cucumber_report.html
5. The cucumber user_register/-p drhel31_cucumber_report runtime will first identify the yml configuration in cucumber.
The report will be generated under the / var/www/ directory on the machine on which it runs, and is called drhel31_cucumber_report.html.