How would I run a single test from an RSpec Steak test?
Hi all,
I've recently migrated from TextMate to RubyMine and have really liked it so far. One thing I noticed was that RubyMine doesn't have a Steak plugin like TextMate does, which allows the ability to run a single scenario using the Run Single Test command.
RubyMine's Run Single Test runs fine for standard RSpec's "it" blocks, but doesn't work for Steak's "scenario" blocks. Is there any way to do the same in RubyMine or am I stuck running the full file of acceptance tests everytime I want to run a single Steak test?
One possible solution that has been suggested is to use the --tag focus in the test config and add that to the single test I want to run, but it would be better if I could just run a single test from inside of a "scenario" block.
This solution does not work with Rspec 1.3, which is what we're using
-Kai
请先登录再写评论。
Is it possible to run one Steak's scenario from command line?
Yes it would look something like this:
spec spec_acceptance/acceptance_spec.rb -e "Scenario name string"
You can create run configuration manually (using RSpec default config).
I understand that this is not very convenient, but this is all we can offer for now (we do not have support for Steak and do not have plans for it (at least for now))
If you think that Steak support is important feel free to file a feature requrest in our tracker and we will consider it as soon as it will have noticeable number of votes.
Regards, Oleg.
Alright, I was just checking if it was possible. Thanks for the help!