Skip to content

Commit

Permalink
[rb] aggregate failures for specs
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Dec 2, 2019
1 parent 3c038ec commit 5a89b22
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rb/spec/integration/selenium/webdriver/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
GlobalTestEnv = WebDriver::SpecSupport::TestEnvironment.new

RSpec.configure do |c|
c.define_derived_metadata do |meta|
meta[:aggregate_failures] = true
end

c.include(WebDriver::SpecSupport::Helpers)

c.before(:suite) do
Expand Down
4 changes: 4 additions & 0 deletions rb/spec/unit/selenium/webdriver/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ def with_env(hash)
end

RSpec.configure do |c|
c.define_derived_metadata do |meta|
meta[:aggregate_failures] = true
end

c.include Selenium::WebDriver::UnitSpecHelper

c.filter_run focus: true if ENV['focus']
Expand Down

0 comments on commit 5a89b22

Please sign in to comment.