test_suite_splitter 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e8eca9c33b9e9db919f0e2a8a7aa816217e054f17785b22411c0196315591e8
4
- data.tar.gz: 8618f272307e0b5967c89822f18b3e4f0d6c425cf3011e294b2c4ce634e83ef0
3
+ metadata.gz: bf8e75ec7693f017eb21ec9ed18216b219800e85498f9e1445041dec1410b3dc
4
+ data.tar.gz: 14314af600cfa9a1afa087b912306ca11659867fa8f9bc62e4292ac6ac2a85cb
5
5
  SHA512:
6
- metadata.gz: 188817535dd7829b1c2513071165287c76b405100365464744636639af514004f511aa8859da73a302d7b65127784e2a57d14fdc2ece24eeb546e076252b1ee1
7
- data.tar.gz: 69f7f346e5dc3c6708b58e36ec55ab1d9990745fa5382479611a136318bd5f08008a478a2e47f7033f9545461b7ed61576d9178998f3d6b4779d5cb0dfaf3c18
6
+ metadata.gz: 8f543e59a5bdc560c1dfbb9b904dca9be82682b142df14ad9a86b4c594c38169d0d27165e14102f4d36e1ee5e8e4d84aa5e131ac400e9657261742dbe9828167
7
+ data.tar.gz: 17be6115b41e1440e67b36441cc997eb3bb9468372644a836acbe7174239f8a1de056648ccad42fe992f6a0990e7530b38e7b9c02f58b208a77a0d4256692b01
@@ -1,8 +1,23 @@
1
- = test_suite_splitter
1
+ # test_suite_splitter
2
2
 
3
- Description goes here.
3
+ Add it to your Gemfile:
4
+ ```ruby
5
+ group :test do
6
+ gem "test_suite_splitter", require: false
7
+ end
8
+ ```
4
9
 
5
- == Contributing to test_suite_splitter
10
+ Change your CI configuration file to execute something like this:
11
+ ```bash
12
+ bundle exec rspec `bundle exec test_suite_splitter --groups=6 --group-number=3`
13
+ ```
14
+
15
+ Or Semaphore that could be done dynamically like this:
16
+ ```bash
17
+ bundle exec rspec `bundle exec test_suite_splitter --groups=${SEMAPHORE_JOB_COUNT} --group-number=${SEMAPHORE_JOB_INDEX}`
18
+ ```
19
+
20
+ ## Contributing to test_suite_splitter
6
21
 
7
22
  * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8
23
  * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
@@ -12,7 +27,7 @@ Description goes here.
12
27
  * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
28
  * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
29
 
15
- == Copyright
30
+ ## Copyright
16
31
 
17
32
  Copyright (c) 2021 kaspernj. See LICENSE.txt for
18
33
  further details.
data/Rakefile CHANGED
@@ -8,33 +8,6 @@ rescue Bundler::BundlerError => e
8
8
  exit e.status_code
9
9
  end
10
10
  require "rake"
11
- require "juwelier"
12
- Juwelier::Tasks.new do |gem|
13
- # gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
14
- gem.name = "test_suite_splitter"
15
- gem.homepage = "http://github.com/kaspernj/test_suite_splitter"
16
- gem.license = "MIT"
17
- gem.summary = "Split your RSpec test suite up into several groups and run them in parallel."
18
- gem.description = "Split your RSpec test suite up into several groups and run them in parallel."
19
- gem.email = "k@spernj.org"
20
- gem.authors = ["kaspernj"]
21
-
22
- # dependencies defined in Gemfile
23
- end
24
- Juwelier::RubygemsDotOrgTasks.new
25
- require "rake/testtask"
26
- Rake::TestTask.new(:test) do |test|
27
- test.libs << "lib" << "test"
28
- test.pattern = "test/**/test_*.rb"
29
- test.verbose = true
30
- end
31
-
32
- desc "Code coverage detail"
33
- task :simplecov do
34
- ENV["COVERAGE"] = "true"
35
- Rake::Task["test"].execute
36
- end
37
-
38
11
  task default: :test
39
12
 
40
13
  require "rdoc/task"
@@ -6,16 +6,24 @@ require "#{__dir__}/../lib/test_suite_splitter"
6
6
 
7
7
  args = {}
8
8
  ARGV.each do |arg|
9
- if (match = arg.match(/\A--(.+?)=(.+)\Z/))
10
- args[match[1]] = match[2]
9
+ match = arg.match(/\A--(.+?)=(.+)\Z/)
10
+ raise "Couldn't match argument: #{arg}" unless match
11
+
12
+ key = match[1]
13
+ hash_key = key.tr("-", "_").to_sym
14
+ value = match[2]
15
+
16
+ if key == "exclude-types" || key == "only-types" || key == "tags"
17
+ value = value.split(",")
18
+ elsif key == "group-number" || key == "groups"
19
+ value = value.to_i
20
+ else
21
+ raise "Unknown argument: #{key}"
11
22
  end
23
+
24
+ args[hash_key] = value
12
25
  end
13
26
 
14
- rspec_helper = ::TestSuiteSplitter::RspecHelper.new(
15
- groups: args.fetch("groups").to_i,
16
- group_number: args.fetch("group-number").to_i,
17
- only_types: args["only-types"]&.split(","),
18
- tags: args["tags"]&.split(",")
19
- )
27
+ rspec_helper = ::TestSuiteSplitter::RspecHelper.new(**args)
20
28
 
21
29
  print rspec_helper.group_files.map { |group_file| group_file.fetch(:path) }.join(" ")
@@ -1,7 +1,8 @@
1
1
  class TestSuiteSplitter::RspecHelper
2
- attr_reader :only_types, :tags
2
+ attr_reader :exclude_types, :only_types, :tags
3
3
 
4
- def initialize(groups:, group_number:, only_types: nil, tags: nil)
4
+ def initialize(groups:, group_number:, exclude_types: nil, only_types: nil, tags: nil)
5
+ @exclude_types = exclude_types
5
6
  @groups = groups
6
7
  @group_number = group_number
7
8
  @example_data_exists = File.exist?("spec/examples.txt")
@@ -177,7 +178,10 @@ private
177
178
  end
178
179
 
179
180
  def ignore_type?(type)
180
- only_types && !only_types.include?(type) # rubocop:disable: Style/SafeNavigation
181
+ return true if only_types && !only_types.include?(type)
182
+ return true if exclude_types&.include?(type)
183
+
184
+ false
181
185
  end
182
186
 
183
187
  def points_from_type(type)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_suite_splitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - kaspernj
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-17 00:00:00.000000000 Z
11
+ date: 2022-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: juwelier
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: rspec
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -101,28 +87,19 @@ executables:
101
87
  extensions: []
102
88
  extra_rdoc_files:
103
89
  - LICENSE.txt
104
- - README.rdoc
90
+ - README.md
105
91
  files:
106
- - ".document"
107
- - ".rubocop.yml"
108
- - Gemfile
109
- - Gemfile.lock
110
92
  - LICENSE.txt
111
- - README.rdoc
93
+ - README.md
112
94
  - Rakefile
113
- - VERSION
114
95
  - bin/test_suite_splitter
115
96
  - lib/test_suite_splitter.rb
116
97
  - lib/test_suite_splitter/rspec_helper.rb
117
- - peak_flow.yml
118
- - spec/spec_helper.rb
119
- - spec/test_suite_splitter/rspec_helper/nemoa_rspec_output.json
120
- - spec/test_suite_splitter/rspec_helper_spec.rb
121
- - test_suite_splitter.gemspec
122
98
  homepage: http://github.com/kaspernj/test_suite_splitter
123
99
  licenses:
124
100
  - MIT
125
- metadata: {}
101
+ metadata:
102
+ rubygems_mfa_required: 'true'
126
103
  post_install_message:
127
104
  rdoc_options: []
128
105
  require_paths:
@@ -131,14 +108,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
131
108
  requirements:
132
109
  - - ">="
133
110
  - !ruby/object:Gem::Version
134
- version: '0'
111
+ version: 2.5.0
135
112
  required_rubygems_version: !ruby/object:Gem::Requirement
136
113
  requirements:
137
114
  - - ">="
138
115
  - !ruby/object:Gem::Version
139
116
  version: '0'
140
117
  requirements: []
141
- rubygems_version: 3.1.6
118
+ rubygems_version: 3.2.32
142
119
  signing_key:
143
120
  specification_version: 4
144
121
  summary: Split your RSpec test suite up into several groups and run them in parallel.
data/.document DELETED
@@ -1,5 +0,0 @@
1
- lib/**/*.rb
2
- bin/*
3
- -
4
- features/**/*.feature
5
- LICENSE.txt
data/.rubocop.yml DELETED
@@ -1,195 +0,0 @@
1
- AllCops:
2
- DisplayCopNames: true
3
- DisplayStyleGuide: true
4
- NewCops: enable
5
- TargetRubyVersion: 2.7
6
-
7
- require:
8
- - rubocop-performance
9
- - rubocop-rspec
10
-
11
- Layout/AccessModifierIndentation:
12
- EnforcedStyle: outdent
13
-
14
- Layout/ArgumentAlignment:
15
- EnforcedStyle: with_fixed_indentation
16
-
17
- Layout/CaseIndentation:
18
- EnforcedStyle: end
19
-
20
- Layout/EmptyLines:
21
- Enabled: false
22
-
23
- Layout/EmptyLinesAroundArguments:
24
- Enabled: false
25
-
26
- Layout/EmptyLinesAroundAttributeAccessor:
27
- Enabled: true
28
-
29
- Layout/EndAlignment:
30
- EnforcedStyleAlignWith: variable
31
-
32
- Layout/LineLength:
33
- Max: 160
34
-
35
- Layout/MultilineMethodCallIndentation:
36
- EnforcedStyle: indented
37
-
38
- Layout/MultilineOperationIndentation:
39
- EnforcedStyle: indented
40
-
41
- Layout/ParameterAlignment:
42
- EnforcedStyle: with_fixed_indentation
43
-
44
- Layout/RescueEnsureAlignment:
45
- Enabled: false
46
-
47
- Layout/SpaceAroundMethodCallOperator:
48
- Enabled: true
49
-
50
- Layout/SpaceInsideHashLiteralBraces:
51
- EnforcedStyle: no_space
52
-
53
- Lint/DeprecatedOpenSSLConstant:
54
- Enabled: true
55
-
56
- Lint/FloatComparison:
57
- Enabled: false
58
-
59
- Lint/RaiseException:
60
- Enabled: true
61
-
62
- Lint/StructNewOverride:
63
- Enabled: true
64
-
65
- # Metrics/AbcSize:
66
- # Max: 25
67
-
68
- Metrics/BlockLength:
69
- Enabled: false
70
-
71
- Metrics/ClassLength:
72
- Max: 250
73
-
74
- Metrics/AbcSize:
75
- Max: 29
76
-
77
- Metrics/CyclomaticComplexity:
78
- Max: 13
79
-
80
- Metrics/MethodLength:
81
- Max: 50
82
-
83
- Metrics/PerceivedComplexity:
84
- Max: 15
85
-
86
- RSpec/AnyInstance:
87
- Enabled: false
88
-
89
- RSpec/ContextWording:
90
- Enabled: false
91
-
92
- RSpec/DescribeClass:
93
- Enabled: false
94
-
95
- RSpec/DescribedClass:
96
- Enabled: false
97
-
98
- RSpec/ExampleLength:
99
- Enabled: false
100
-
101
- Style/FormatStringToken:
102
- Enabled: false
103
-
104
- RSpec/LetSetup:
105
- Enabled: false
106
-
107
- RSpec/MessageSpies:
108
- Enabled: false
109
-
110
- RSpec/MultipleExpectations:
111
- Enabled: false
112
-
113
- RSpec/NamedSubject:
114
- Enabled: false
115
-
116
- RSpec/NestedGroups:
117
- Enabled: false
118
-
119
- # This can make expectaions look weird: Prefer using be_rvm_in_build_config matcher over rvm_in_build_config?
120
- RSpec/PredicateMatcher:
121
- Enabled: false
122
-
123
- RSpec/StubbedMock:
124
- Enabled: false
125
-
126
- Style/CaseLikeIf:
127
- Enabled: false
128
-
129
- Style/ClassAndModuleChildren:
130
- EnforcedStyle: compact
131
-
132
- Style/ConditionalAssignment:
133
- Enabled: false
134
-
135
- Style/Documentation:
136
- Enabled: false
137
-
138
- Style/ExplicitBlockArgument:
139
- Enabled: false
140
-
141
- Style/ExponentialNotation:
142
- Enabled: true
143
-
144
- Style/FrozenStringLiteralComment:
145
- Enabled: false
146
-
147
- # Will report offences for many places that are much more readable without using a guard clause
148
- Style/GuardClause:
149
- Enabled: false
150
-
151
- Style/HashEachMethods:
152
- Enabled: true
153
-
154
- Style/HashTransformKeys:
155
- Enabled: true
156
-
157
- Style/HashTransformValues:
158
- Enabled: true
159
-
160
- Style/Lambda:
161
- Enabled: false
162
-
163
- Style/LambdaCall:
164
- Enabled: false
165
-
166
- Style/MultipleComparison:
167
- Enabled: false
168
-
169
- Style/RegexpLiteral:
170
- Enabled: false
171
-
172
- Style/StringLiterals:
173
- EnforcedStyle: double_quotes
174
-
175
- Style/StringLiteralsInInterpolation:
176
- Enabled: false
177
-
178
- Style/NilComparison:
179
- Enabled: false
180
-
181
- Style/SignalException:
182
- EnforcedStyle: only_raise
183
-
184
- Style/SlicingWithRange:
185
- Enabled: true
186
-
187
- Style/SymbolArray:
188
- Enabled: false
189
-
190
- Style/TrivialAccessors:
191
- ExactNameMatch: true
192
- Enabled: true
193
-
194
- Style/WordArray:
195
- Enabled: false
data/Gemfile DELETED
@@ -1,18 +0,0 @@
1
- source "https://rubygems.org"
2
- # Add dependencies required to use your gem here.
3
- # Example:
4
- # gem "activesupport", ">= 2.3.5"
5
-
6
- # Add dependencies to develop your gem here.
7
- # Include everything needed to run rake, tests, features, etc.
8
- group :development do
9
- gem "bundler"
10
- gem "juwelier"
11
- end
12
-
13
- group :development, :test do
14
- gem "rspec"
15
- gem "rubocop"
16
- gem "rubocop-performance"
17
- gem "rubocop-rspec"
18
- end
data/Gemfile.lock DELETED
@@ -1,126 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- addressable (2.8.0)
5
- public_suffix (>= 2.0.2, < 5.0)
6
- ast (2.4.2)
7
- builder (3.2.4)
8
- descendants_tracker (0.0.4)
9
- thread_safe (~> 0.3, >= 0.3.1)
10
- diff-lcs (1.4.4)
11
- faraday (1.8.0)
12
- faraday-em_http (~> 1.0)
13
- faraday-em_synchrony (~> 1.0)
14
- faraday-excon (~> 1.1)
15
- faraday-httpclient (~> 1.0.1)
16
- faraday-net_http (~> 1.0)
17
- faraday-net_http_persistent (~> 1.1)
18
- faraday-patron (~> 1.0)
19
- faraday-rack (~> 1.0)
20
- multipart-post (>= 1.2, < 3)
21
- ruby2_keywords (>= 0.0.4)
22
- faraday-em_http (1.0.0)
23
- faraday-em_synchrony (1.0.0)
24
- faraday-excon (1.1.0)
25
- faraday-httpclient (1.0.1)
26
- faraday-net_http (1.0.1)
27
- faraday-net_http_persistent (1.2.0)
28
- faraday-patron (1.0.0)
29
- faraday-rack (1.0.0)
30
- git (1.9.1)
31
- rchardet (~> 1.8)
32
- github_api (0.19.0)
33
- addressable (~> 2.4)
34
- descendants_tracker (~> 0.0.4)
35
- faraday (>= 0.8, < 2)
36
- hashie (~> 3.5, >= 3.5.2)
37
- oauth2 (~> 1.0)
38
- hashie (3.6.0)
39
- highline (2.0.3)
40
- juwelier (2.4.9)
41
- builder
42
- bundler
43
- git
44
- github_api
45
- highline
46
- kamelcase (~> 0)
47
- nokogiri
48
- psych
49
- rake
50
- rdoc
51
- semver2
52
- jwt (2.3.0)
53
- kamelcase (0.0.2)
54
- semver2 (~> 3)
55
- multi_json (1.15.0)
56
- multi_xml (0.6.0)
57
- multipart-post (2.1.1)
58
- nokogiri (1.12.5-x86_64-linux)
59
- racc (~> 1.4)
60
- oauth2 (1.4.7)
61
- faraday (>= 0.8, < 2.0)
62
- jwt (>= 1.0, < 3.0)
63
- multi_json (~> 1.3)
64
- multi_xml (~> 0.5)
65
- rack (>= 1.2, < 3)
66
- parallel (1.21.0)
67
- parser (3.0.2.0)
68
- ast (~> 2.4.1)
69
- psych (4.0.2)
70
- public_suffix (4.0.6)
71
- racc (1.6.0)
72
- rack (2.2.3)
73
- rainbow (3.0.0)
74
- rake (13.0.6)
75
- rchardet (1.8.0)
76
- rdoc (6.3.3)
77
- regexp_parser (2.1.1)
78
- rexml (3.2.5)
79
- rspec (3.10.0)
80
- rspec-core (~> 3.10.0)
81
- rspec-expectations (~> 3.10.0)
82
- rspec-mocks (~> 3.10.0)
83
- rspec-core (3.10.1)
84
- rspec-support (~> 3.10.0)
85
- rspec-expectations (3.10.1)
86
- diff-lcs (>= 1.2.0, < 2.0)
87
- rspec-support (~> 3.10.0)
88
- rspec-mocks (3.10.2)
89
- diff-lcs (>= 1.2.0, < 2.0)
90
- rspec-support (~> 3.10.0)
91
- rspec-support (3.10.3)
92
- rubocop (1.23.0)
93
- parallel (~> 1.10)
94
- parser (>= 3.0.0.0)
95
- rainbow (>= 2.2.2, < 4.0)
96
- regexp_parser (>= 1.8, < 3.0)
97
- rexml
98
- rubocop-ast (>= 1.12.0, < 2.0)
99
- ruby-progressbar (~> 1.7)
100
- unicode-display_width (>= 1.4.0, < 3.0)
101
- rubocop-ast (1.13.0)
102
- parser (>= 3.0.1.1)
103
- rubocop-performance (1.12.0)
104
- rubocop (>= 1.7.0, < 2.0)
105
- rubocop-ast (>= 0.4.0)
106
- rubocop-rspec (2.6.0)
107
- rubocop (~> 1.19)
108
- ruby-progressbar (1.11.0)
109
- ruby2_keywords (0.0.5)
110
- semver2 (3.4.2)
111
- thread_safe (0.3.6)
112
- unicode-display_width (2.1.0)
113
-
114
- PLATFORMS
115
- x86_64-linux
116
-
117
- DEPENDENCIES
118
- bundler
119
- juwelier
120
- rspec
121
- rubocop
122
- rubocop-performance
123
- rubocop-rspec
124
-
125
- BUNDLED WITH
126
- 2.2.28
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.0.1
data/peak_flow.yml DELETED
@@ -1,4 +0,0 @@
1
- rvm: true
2
- script:
3
- - bundle exec rspec
4
- - bundle exec rubocop
data/spec/spec_helper.rb DELETED
@@ -1,96 +0,0 @@
1
- # This file was generated by the `rails generate rspec:install` command. Conventionally, all
2
- # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
- # The generated `.rspec` file contains `--require spec_helper` which will cause
4
- # this file to always be loaded, without a need to explicitly require it in any
5
- # files.
6
- #
7
- # Given that it is always loaded, you are encouraged to keep this file as
8
- # light-weight as possible. Requiring heavyweight dependencies from this file
9
- # will add to the boot time of your test suite on EVERY test run, even for an
10
- # individual file that may not need all of that loaded. Instead, consider making
11
- # a separate helper file that requires the additional dependencies and performs
12
- # the additional setup, and require it from the spec files that actually need
13
- # it.
14
- #
15
- # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
16
- require_relative "../lib/test_suite_splitter"
17
-
18
- RSpec.configure do |config|
19
- # rspec-expectations config goes here. You can use an alternate
20
- # assertion/expectation library such as wrong or the stdlib/minitest
21
- # assertions if you prefer.
22
- config.expect_with :rspec do |expectations|
23
- # This option will default to `true` in RSpec 4. It makes the `description`
24
- # and `failure_message` of custom matchers include text for helper methods
25
- # defined using `chain`, e.g.:
26
- # be_bigger_than(2).and_smaller_than(4).description
27
- # # => "be bigger than 2 and smaller than 4"
28
- # ...rather than:
29
- # # => "be bigger than 2"
30
- expectations.include_chain_clauses_in_custom_matcher_descriptions = true
31
- end
32
-
33
- # rspec-mocks config goes here. You can use an alternate test double
34
- # library (such as bogus or mocha) by changing the `mock_with` option here.
35
- config.mock_with :rspec do |mocks|
36
- # Prevents you from mocking or stubbing a method that does not exist on
37
- # a real object. This is generally recommended, and will default to
38
- # `true` in RSpec 4.
39
- mocks.verify_partial_doubles = true
40
- end
41
-
42
- # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
43
- # have no way to turn it off -- the option exists only for backwards
44
- # compatibility in RSpec 3). It causes shared context metadata to be
45
- # inherited by the metadata hash of host groups and examples, rather than
46
- # triggering implicit auto-inclusion in groups with matching metadata.
47
- config.shared_context_metadata_behavior = :apply_to_host_groups
48
-
49
- # The settings below are suggested to provide a good initial experience
50
- # with RSpec, but feel free to customize to your heart's content.
51
- # # This allows you to limit a spec run to individual examples or groups
52
- # # you care about by tagging them with `:focus` metadata. When nothing
53
- # # is tagged with `:focus`, all examples get run. RSpec also provides
54
- # # aliases for `it`, `describe`, and `context` that include `:focus`
55
- # # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
56
- # config.filter_run_when_matching :focus
57
- #
58
- # # Allows RSpec to persist some state between runs in order to support
59
- # # the `--only-failures` and `--next-failure` CLI options. We recommend
60
- # # you configure your source control system to ignore this file.
61
- # config.example_status_persistence_file_path = "spec/examples.txt"
62
- #
63
- # # Limits the available syntax to the non-monkey patched syntax that is
64
- # # recommended. For more details, see:
65
- # # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
66
- # # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
67
- # # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
68
- # config.disable_monkey_patching!
69
- #
70
- # # Many RSpec users commonly either run the entire suite or an individual
71
- # # file, and it's useful to allow more verbose output when running an
72
- # # individual spec file.
73
- # if config.files_to_run.one?
74
- # # Use the documentation formatter for detailed output,
75
- # # unless a formatter has already been configured
76
- # # (e.g. via a command-line flag).
77
- # config.default_formatter = "doc"
78
- # end
79
- #
80
- # # Print the 10 slowest examples and example groups at the
81
- # # end of the spec run, to help surface which specs are running
82
- # # particularly slow.
83
- # config.profile_examples = 10
84
- #
85
- # # Run specs in random order to surface order dependencies. If you find an
86
- # # order dependency and want to debug it, you can fix the order by providing
87
- # # the seed, which is printed after each run.
88
- # # --seed 1234
89
- # config.order = :random
90
- #
91
- # # Seed global randomization in this process using the `--seed` CLI option.
92
- # # Setting this allows you to use `--seed` to deterministically reproduce
93
- # # test failures related to randomization by passing the same `--seed` value
94
- # # as the one that triggered the failure.
95
- # Kernel.srand config.seed
96
- end