我最近从TextMate迁移到了RubyMine,到目前为止我真的非常喜欢它。我注意到的一件事是RubyMine没有像TextMate那样的Steak插件,它允许运行单个场景。
有没有办法在RubyMine中做同样的事情,或者每次我想要进行单一的牛排测试时,我都会运行完整的验收测试文件?
答案 0 :(得分:0)
Steak是rspec的延伸。要在rspec中运行单个测试,您可以指定--tag
describe 'run this test', :focus => true do
# this one will run
end
describe 'but not this one' do
# wont get run
end
$ rspec --tag focus my_spec_file.rb
(注意:我从未使用过rubymine)