无效选项:--autospec
/usr/local/bin/ruby -rrubygems -e "require 'redgreen'" /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/bin/spec --autospec <files_here> -O spec/spec.opts
invalid option: --autospec
Test::Unit automatic runner.
Usage: -e [options] [-- untouched arguments]
which spec says "/usr/local/bin/spec"
which autospec says "/usr/local/bin/autospec"
/usr/local/bin/spec --help includes --autospec option in the list.
我在这里缺少什么?
/usr/local/bin/ruby -rrubygems -e "require 'redgreen'" /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/bin/spec --autospec <files_here> -O spec/spec.opts
invalid option: --autospec
Test::Unit automatic runner.
Usage: -e [options] [-- untouched arguments]
which spec says "/usr/local/bin/spec"
which autospec says "/usr/local/bin/autospec"
/usr/local/bin/spec --help includes --autospec option in the list.
What am I missing here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我终于在周末有时间自己研究一下这个问题。
问题是 .autotest 文件中的“require 'redgreen/autotest'”语句
我将自动测试配置保留在 ~/.autotest
注释中,该行和“autospec”、“autotest”和“cucumber”工作正常。
I finally got some time during the weekend to look into this myself.
The problem is "require 'redgreen/autotest'" statement in .autotest file
I keep my autotest configuration in ~/.autotest
Comment that row and "autospec", "autotest", and "cucumber" works ok.
您可以有条件地要求 redgreen
您可以通过在 spec.opts 文件中传递 --color 在 rspec 中获得彩色输出
You can just require redgreen conditionally
You can have coloured output in rspec by passing --color in your spec.opts file