Test::unit 和 Rubymine “未找到测试”
我是 Ruby 的新手,我尝试将 test::unit 框架与 RubyMine IDE (3.1.1) 一起使用。
我不明白这里关于 test::unit 的注释: http://www.jetbrains.com/ruby/webhelp/test -unit-special-note.html
特别是这条指令:“在 Gemfile 中包含测试单元 gem。”我使用 gem install "test-unit" 并将其附加到我的项目中,但我仍然得到 0 个测试和错误消息“未找到测试”
I'm a newbie in Ruby and I try to use the test::unit framework with the RubyMine IDE (3.1.1).
I don't understand the note about test::unit here:
http://www.jetbrains.com/ruby/webhelp/test-unit-special-note.html
Specially this instruction: "Include test-unit gem in your Gemfile." I use gem install "test-unit" and attach it to my project but I still got 0 tests and the error message "No tests were found"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
确保您的项目根目录中有一个
Gemfile
,其中包含:Make sure that you have a
Gemfile
in your project root which contains:还有一个原因可能会导致某些场景无法被识别。如果其他功能中存在同名场景,可能会导致您的场景无法被检测到。
There is another reason that can cause some scenario not to be recognized. If there is an scenario with the same name in other feature, it may cause your scenario not to be detected.