用于 Ruby 测试的图形用户可视化
我们可以使用什么样的(小)工具来渲染测试的图形结果?
实际上,我想显示一个图形而不是这个测试(例如):
Finished in 3.44 seconds
5 examples, 0 failures
例如,也许是一个 JS 图形,其中每个有缺陷的测试都可以是红色的......
谢谢。
What kind of (small) tool can we use in order to render a graphical result from testing?
Actually, I would like to display a graphic instead of this test (for example):
Finished in 3.44 seconds
5 examples, 0 failures
Maybe a JS graph for instance, where each bugged test could be in red...
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您使用 Hudson 等持续集成工具,您可以绘制随时间变化的故障图表。
If you use a Continuous Integration tool such as Hudson you can chart failures over time.
Rspec 附带了一个 html 格式化程序。您可以将选项传递给命令行,例如
您也可以继承 RSpec 格式化程序来编写自己的格式化程序。
Well Rspec comes with a html formatter. you could just pass the option to command line like
You could also inherit RSpec formatter to write your own formatters.
也许你正在寻找 fuubar,它不是 JS,但显示了一个漂亮的彩色进度条。我还用它来快速了解通过或失败的测试。
Maybe you are looking for fuubar, it's not JS but shows a nice progress bar in colors. I also use it to have a quick overview of passing or failing tests.