【发布时间】:2013-02-11 22:59:56
【问题描述】:
有很多示例可以使用 rspec、selenium 和 capybara 来运行这样开始的测试:
it "does something", :js => true do
您可以通过运行“rake spec”来运行所有内容,但是如何运行单个 capybara/selenium 测试?我一辈子都想不通。
【问题讨论】:
-
你读过README吗?
有很多示例可以使用 rspec、selenium 和 capybara 来运行这样开始的测试:
it "does something", :js => true do
您可以通过运行“rake spec”来运行所有内容,但是如何运行单个 capybara/selenium 测试?我一辈子都想不通。
【问题讨论】:
你可以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
【讨论】: