作者热门文章
- xml - AJAX/Jquery XML 解析
- 具有多重继承的 XML 模式
- .net - 枚举序列化 Json 与 XML
- XML 简单类型、简单内容、复杂类型、复杂内容
只需添加 gem redgreen,'rake test' 总是在以下行结束:
0 次测试,0 次断言,0 次失败,0 次错误
我在 github 上创建了一个示例项目: https://github.com/joel1di1/test_colored_tests
最佳答案
在您的 Gemfile 中,将组从 :development 和 :test 更改为仅 :test。
这样在运行测试时就需要 redgreen gem。
关于ruby-on-rails - 使用 redgreen gem 的 Rake 测试总是以 "0 tests"结束,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5950112/
我想使用红绿(或类似的)来为我们的测试输出着色,但我不想将它强加给其他人。有没有一种方法可以让我在不更改源代码的情况下使用它? 最佳答案 您可以将这样的代码添加到您的 test_helper.rb 以
只需添加 gem redgreen,'rake test' 总是在以下行结束: 0 次测试,0 次断言,0 次失败,0 次错误 我在 github 上创建了一个示例项目: https://github
我是一名优秀的程序员,十分优秀!