gpt4 book ai didi

ruby-on-rails - 使用 redgreen gem 的 Rake 测试总是以 "0 tests"结束

转载 作者:数据小太阳 更新时间:2023-10-29 08:10:32 24 4
gpt4 key购买 nike

只需添加 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com