integration-tests-rails 1.1.7 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1668370843b5697395c5716bfd2442188ab3dc44381b65d9442b3df2d8a77db7
4
- data.tar.gz: c55dbc2cc27128a3858e72a16ba1ea14b09069a84f0d154993c6c6423a752a9b
3
+ metadata.gz: 5e732edd0e972866d16068a2107718237047d94b501aaffd6966ea72fa4ddd65
4
+ data.tar.gz: fd6ee38aa3bcbd326e8db89c5fc8442752525f2913fc3aee505d802905b90145
5
5
  SHA512:
6
- metadata.gz: 5c8b64492f395681aa22d9e64a3c3a23adca9a9088a48c5e9ec427d36e1ef326efd549f6a96890087aee5be6d03fac63b2d4321ddedade93027876d340977bee
7
- data.tar.gz: 6f836c2525fa07283f1270c98ddbc9a52815a26b2c5452f2d50408cdbdcc10c2547b1ca2834064b9e5dc53cb17c61cf78cbadc6194c973c942c8fd26b2d28410
6
+ metadata.gz: 3a2c6f00c16430811ddeae480bd34858757462d37524b5a76b101b9be86e106ffbb28ef493b2fec8a9cae91c0e8d3544879d9ebc797f614c76c425c1b1cc35a8
7
+ data.tar.gz: 1e10bb718a921b4a1ad4b5d57dc255bc67714e57e5c5113e0b07e2aad14cf54f2cf4d7b9c1e73c7a56d90b099e891f8e7709528a02736d816b662a33bbe3cef1
@@ -12,11 +12,11 @@ module IntegrationTestsRails
12
12
  (attempts + 1).times do |attempt_number|
13
13
  reset_example_state(context)
14
14
  example.run
15
- ex = RSpec.current_example.exception
15
+ ex = example.exception
16
16
  break unless ex
17
17
  break unless capture_exceptions.any? { |klass| ex.is_a?(klass) }
18
18
 
19
- Util.log "Auto Retry Attempt #{attempt_number + 1} failed for: #{description}"
19
+ Util.log "Auto Retry Attempt #{attempt_number + 1} failed for: #{description} (#{ex.class})"
20
20
  sleep(sleep_duration) if attempt_number < attempts && sleep_duration.positive?
21
21
  end
22
22
  end
@@ -54,7 +54,11 @@ module IntegrationTestsRails
54
54
  @puma_threads = '1:1'
55
55
  @remote = false
56
56
  @retry_attempts = 1
57
- @retry_capture_exceptions = ['RSpec::Expectations::ExpectationNotMetError', 'Capybara::ElementNotFound']
57
+ @retry_capture_exceptions = [
58
+ 'RSpec::Expectations::ExpectationNotMetError',
59
+ 'Capybara::ElementNotFound',
60
+ 'Ferrum::JavaScriptError'
61
+ ]
58
62
  @retry_sleep_duration = 0
59
63
  @server_host = '0.0.0.0' # rubocop:disable Style/IpAddresses
60
64
  @server_port = nil
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IntegrationTestsRails
4
- VERSION = '1.1.7'
4
+ VERSION = '1.1.9'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: integration-tests-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
4
+ version: 1.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tien