Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在我的测试套件使用 Jasmine 和量角器完成后生成可通过电子邮件发送的报告。
我的测试套件完成后如何获得以下信息。
1.规格总数 2.通过规格总数 3.失败测试规格总数 4.待定规格总数
到目前为止,我找不到任何合适的解决方案。请帮我解决这个问题。
使用 spec-reporter 在您的控制台上写下您的测试结果,但如果您真的需要发送电子邮件,您也可以使用 jasmine2-html-reporter,它会生成一个带有结果的 html 页面。使用该文件,您可以编写一个函数以通过电子邮件发送文件或您需要的东西
控制台:茉莉花规格记者
HTML:茉莉花 html 记者