生成html的报告:

1, cucumber user_register/ --format html --out=/var/www/features_report.html
2, 在浏览器中输入 http://127.0.0.1/features_report.html 查看报告。
3, 别人要浏览器中输入  http://10.0.2.99/features_report.html   ==>10.0.2.99是我运行测试程序的测试机,也就是测试报告会存放在10.0.2.99的/var/www/目录下。

4, 配置config/cucumber.yml 文件, 这个文件放在support目录下。
输入:
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, cucumber user_register/ -p drhel31_cucumber_report  运行时会先识别cucumber里的yml配置。
这个report 在哪台机子运行就会生成在哪台机子上的 /var/www/目录下,且名为drhel31_cucumber_report.html