你如何运行使用硒驱动器的单一水豚测试?

时间:2013-02-11 22:59:57

标签: selenium rspec capybara

有很多例子可以使用rspec,selenium和capybara来运行如下所示的测试:

it "does something", :js => true do

你可以通过运行“rake spec”运行所有东西,但是你如何运行单个水豚/硒测试?我无法理解我的生活。

1 个答案:

答案 0 :(得分:5)

你可以tag an example

it "does something", :js => true, :focus => true do

$ rspec . --tag focus

或者你可以specify the line number of the spec

$ rspec my_spec.rb:37
相关问题