我的黄瓜测试在命令行上运行良好,但是当我在 Jenkins/Hudson 持续集成中运行它们时,我得到以下信息,但不知道如何修复它:
11 scenarios (3 skipped, 3 pending, 5 passed)
78 steps (51 skipped, 3 pending, 24 passed)
0m3.238s
Build step 'Execute shell' marked build as failure
Recording test results
Failed to send e-mail to kamilski81 because no e-mail address is known, and no default e-mail domain is configured
Failed to send e-mail to i.wooten because no e-mail address is known, and no default e-mail domain is configured
Failed to send e-mail to scott.j.rodgers because no e-mail address is known, and no default e-mail domain is configured
Sending e-mails to: dev@sc.com
Finished: FAILURE
我的脚本的最后几行:
cucumber
有人建议我添加“退出 0”,但这会破坏我的 Junit 报告,因此报告不正确。