flakey_spec_catcher 0.9.7 → 0.9.8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fce0bbfeef6c7ba89586f7d59b64084329d685108396037f77dec4276cf7a402
|
4
|
+
data.tar.gz: 015d979e822fb914c0eaecbe1a518eb2971fba7d1a1d41c13e5ffb83e184b0f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa94174f28662dc5d1e10be69879852c9b7f1947dfa7acfcafc462916a9fa405a1fd8807a79a81f9cbf83fd91bc930370bae54491f892da7f90e9b3c1b2440c5
|
7
|
+
data.tar.gz: 2ce6f81244240c34a64a1c8319d95e56a50d24f270642f77ad5edf1f33464e8b2df601c2e6d20ca6705eca94f683e30caa81138b8909f57e0b301b5a897a09c4
|
data/README.md
CHANGED
@@ -163,6 +163,7 @@ FSC_USAGE_PATTERNS = '{ spec/ui => bundle exec rspec }, { spec/api => parallel_r
|
|
163
163
|
--verbose Send all output from running tests to stdout
|
164
164
|
-v, --version Prints current flakey_spec_catcher_version
|
165
165
|
-h, --help Displays available flakey_spec_catcher cli overrides
|
166
|
+
--rspec-options '[OPTIONS]' Execute default usage with rspec options
|
166
167
|
```
|
167
168
|
|
168
169
|
Examples:
|
@@ -8,7 +8,7 @@ module FlakeySpecCatcher
|
|
8
8
|
# Captures command line arguments for manual re-runs
|
9
9
|
class CliOverride
|
10
10
|
attr_reader :rerun_patterns, :rerun_usage, :repeat_factor, :enable_runs, :excluded_tags, :use_parent, :dry_run
|
11
|
-
attr_reader :output_file, :split_nodes, :split_index, :verbose
|
11
|
+
attr_reader :output_file, :split_nodes, :split_index, :verbose, :test_options
|
12
12
|
|
13
13
|
def initialize
|
14
14
|
@dry_run = false
|
@@ -16,6 +16,7 @@ module FlakeySpecCatcher
|
|
16
16
|
@excluded_tags = []
|
17
17
|
@use_parent = false
|
18
18
|
@verbose = false
|
19
|
+
@test_options = []
|
19
20
|
parse_command_line_args
|
20
21
|
validate_arguments
|
21
22
|
end
|
@@ -87,6 +88,10 @@ module FlakeySpecCatcher
|
|
87
88
|
puts opts
|
88
89
|
@enable_runs = false
|
89
90
|
end
|
91
|
+
|
92
|
+
opts.on("--rspec-options '[OPTIONS]'", 'execute default usage with rspec options') do |arg|
|
93
|
+
@test_options = arg.split(/[ ](?=(?:[^"]*"[^"]*")*[^"]*$)(?=(?:[^']*'[^']*')*[^']*$)/)
|
94
|
+
end
|
90
95
|
end.parse!
|
91
96
|
end
|
92
97
|
|
@@ -98,7 +98,7 @@ module FlakeySpecCatcher
|
|
98
98
|
rspec_args = ['--format', 'documentation', '--out', @user_config.output_file, test]
|
99
99
|
# Rspec output sent to stdout if verbose option is true
|
100
100
|
rspec_args << '-fd' if @user_config.verbose
|
101
|
-
return_status = RSpec::Core::Runner.run(rspec_args)
|
101
|
+
return_status = RSpec::Core::Runner.run(@user_config.test_options.concat(rspec_args))
|
102
102
|
RSpec.clear_examples
|
103
103
|
copy_output_to_temp_file unless @user_config.output_file == File::NULL
|
104
104
|
return_status
|
@@ -11,7 +11,7 @@ module FlakeySpecCatcher
|
|
11
11
|
attr_reader :rerun_file_only, :rspec_usage_patterns, :excluded_tags
|
12
12
|
attr_reader :manual_rerun_patterns, :manual_rerun_usage
|
13
13
|
attr_reader :enable_runs, :output_file, :use_parent, :dry_run
|
14
|
-
attr_reader :split_nodes, :split_index, :verbose
|
14
|
+
attr_reader :split_nodes, :split_index, :verbose, :test_options
|
15
15
|
|
16
16
|
USER_CONFIG_ENV_VARS = %w[FSC_REPEAT_FACTOR FSC_IGNORE_FILES FSC_IGNORE_BRANCHES
|
17
17
|
FSC_SILENT_MODE FSC_RERUN_FILE_ONLY FSC_USAGE_PATTERNS
|
@@ -55,6 +55,7 @@ module FlakeySpecCatcher
|
|
55
55
|
end
|
56
56
|
@output_file = set_output_file
|
57
57
|
@verbose = @cli_override.verbose
|
58
|
+
@test_options = @cli_override.test_options
|
58
59
|
end
|
59
60
|
# rubocop:enable Metrics/AbcSize
|
60
61
|
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flakey_spec_catcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Watson
|
8
8
|
- Mikey Hargiss
|
9
9
|
- Ben Nelson
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2020-
|
13
|
+
date: 2020-07-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|
@@ -68,7 +68,7 @@ dependencies:
|
|
68
68
|
- - "~>"
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0.17'
|
71
|
-
description:
|
71
|
+
description:
|
72
72
|
email:
|
73
73
|
- bwatson@instructure.com
|
74
74
|
- mhargiss@instructure.com
|
@@ -102,12 +102,12 @@ files:
|
|
102
102
|
- lib/flakey_spec_catcher/version.rb
|
103
103
|
- lib/helpers/colorize.rb
|
104
104
|
- lib/helpers/indent_string.rb
|
105
|
-
homepage:
|
105
|
+
homepage:
|
106
106
|
licenses:
|
107
107
|
- MIT
|
108
108
|
metadata:
|
109
109
|
allowed_push_host: https://rubygems.org
|
110
|
-
post_install_message:
|
110
|
+
post_install_message:
|
111
111
|
rdoc_options: []
|
112
112
|
require_paths:
|
113
113
|
- lib
|
@@ -122,8 +122,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
122
|
- !ruby/object:Gem::Version
|
123
123
|
version: '0'
|
124
124
|
requirements: []
|
125
|
-
rubygems_version: 3.
|
126
|
-
signing_key:
|
125
|
+
rubygems_version: 3.0.3
|
126
|
+
signing_key:
|
127
127
|
specification_version: 4
|
128
128
|
summary: Run new or changed specs many times to prevent unreliable specs
|
129
129
|
test_files: []
|