integration-tests-rails 1.1.9 → 1.1.10

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: 5e732edd0e972866d16068a2107718237047d94b501aaffd6966ea72fa4ddd65
4
- data.tar.gz: fd6ee38aa3bcbd326e8db89c5fc8442752525f2913fc3aee505d802905b90145
3
+ metadata.gz: 0d10ed4b78dce98a66176a7e04911af5bada45c544ccf2c6adb979f88315ec68
4
+ data.tar.gz: d46b2a963273837d366b710a133b6dfa370c382f057784406f1c24a8e3af1eee
5
5
  SHA512:
6
- metadata.gz: 3a2c6f00c16430811ddeae480bd34858757462d37524b5a76b101b9be86e106ffbb28ef493b2fec8a9cae91c0e8d3544879d9ebc797f614c76c425c1b1cc35a8
7
- data.tar.gz: 1e10bb718a921b4a1ad4b5d57dc255bc67714e57e5c5113e0b07e2aad14cf54f2cf4d7b9c1e73c7a56d90b099e891f8e7709528a02736d816b662a33bbe3cef1
6
+ metadata.gz: d561dc1ad7ebd82c193f49b51ce4ecd69aa5aca6f6b11866f9cb57c777573fc196549e260aeb9a94dd6dfdeed9bce36e92dc2a3da0ab0f903d0f72a346e18d0b
7
+ data.tar.gz: 834a9468ab2b347df5358592cee7928f72c7cfccbbb1758e82c608529050fb83afe9cd83dc7212ccd67b8cee59234fbb46881c091f86453145ba6c77c2e1b2d6
data/README.md CHANGED
@@ -64,6 +64,7 @@ The `IntegrationTestsRails.setup` method accepts an optional block for further c
64
64
  IntegrationTestsRails.setup do |config|
65
65
  config.auto_retry = false # Whether to automatically wrap all examples inside retry_on_fail block.
66
66
  config.chrome_url = nil # Used for remote Chrome instances. Needs remote to be true.
67
+ config.headless = false # Whether to run Chrome in headless mode.
67
68
  config.js_coverage = true # Whether to enable JavaScript coverage using Istanbul.
68
69
  config.max_server_retries = 1000 # Before running the tests, Cuprite starts a server to communicate with Chrome. This sets the maximum number of retries to connect to that server.
69
70
  config.puma_threads = '1:1' # Number of threads for the Puma server used by Cuprite.
@@ -23,6 +23,7 @@ module IntegrationTestsRails
23
23
  ::Capybara.register_driver(:cuprite) do |app|
24
24
  options = {
25
25
  window_size: config.window_size,
26
+ headless: config.headless,
26
27
  browser_options: {
27
28
  'no-sandbox' => nil,
28
29
  'disable-dev-shm-usage' => nil,
@@ -34,6 +34,7 @@ module IntegrationTestsRails
34
34
  timeout = config.timeout
35
35
  options = {
36
36
  window_size: config.window_size,
37
+ headless: config.headless,
37
38
  browser_options: {
38
39
  'no-sandbox': nil,
39
40
  'disable-dev-shm-usage': nil
@@ -40,7 +40,7 @@ module IntegrationTestsRails
40
40
  attr_accessor :source_dir, :output_dir, :backup_dir, :coverage_path, :wait_time, :remote, :chrome_url, :window_size,
41
41
  :tests_page_html, :max_server_retries, :verbose, :js_coverage, :auto_retry,
42
42
  :timeout, :server_host, :server_port, :puma_threads, :experimental_features,
43
- :retry_attempts, :retry_sleep_duration, :retry_capture_exceptions
43
+ :retry_attempts, :retry_sleep_duration, :retry_capture_exceptions, :headless
44
44
 
45
45
  def initialize # rubocop:disable Metrics/MethodLength
46
46
  @auto_retry = false
@@ -48,6 +48,7 @@ module IntegrationTestsRails
48
48
  @chrome_url = nil
49
49
  @coverage_path = 'coverage/nyc'
50
50
  @experimental_features = false
51
+ @headless = false
51
52
  @js_coverage = true
52
53
  @max_server_retries = 1000
53
54
  @output_dir = 'tmp/instrumented_js'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IntegrationTestsRails
4
- VERSION = '1.1.9'
4
+ VERSION = '1.1.10'
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.9
4
+ version: 1.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tien