如何从 Test::Unit 构建 HTML 报告?
我正在使用 Selenium Webdriver + Test::Unit test runner for Ruby。 最终,我想将测试结果输出到HTML页面。你能告诉我该怎么做吗? 看起来 RSpec 测试库有这个功能,但是 Test::Unit 呢? 先感谢您。
I am using Selenium Webdriver + Test::Unit test runner for Ruby.
Ultimately, I want to output the testing results to HTML page. Could you advise me how to do it?
Seems like RSpec testing library has this functionality, but what about Test::Unit?
Thank you in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试 RCov (https://github.com/relevance/rcov) 或 SimpleCov (https://github.com/colszowka/simplecov),它们提供 HTML 格式的测试覆盖率输出。我知道这不是您要找的,但他们可以帮助您;)
干杯,
A。
Try RCov (https://github.com/relevance/rcov) or SimpleCov (https://github.com/colszowka/simplecov), they offer test coverage outputs in HTML. I'm aware this is not what you're looking for, but they could help you ;)
cheers,
A.
我知道我回答这个问题已经很晚了。
我最近开始开发一个从 Test::Unit ruby 发出 HTML 报告的 gem 。请大家看看并发表评论。这可能对您未来的任何项目都有用。
I know I'm answering this question very late.
I have recently started developing a gem to emit HTML reports from Test::Unit ruby. Please have a look and comment. That might be useful for any of your future projects.