gitlab_quality-test_tooling 0.1.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 01e27d782b61b17f8388d031534df9096ed36ed3d1c2e94734fb22875f5a47f5
4
+ data.tar.gz: a6df70390360e39d3b33df544c7e39d9838f16682763ed620120285886439d84
5
+ SHA512:
6
+ metadata.gz: 58640b757e621d232e5951cde8fe76fa8f3df7dfd0d5dcae326e0e1546fba6337218176ba1af0ec451a8dc2ea6e0616fd5f8ce66e8c9ab4645889c7768cc0bcd
7
+ data.tar.gz: e9a55097a4a8deb1a65f181e6674d89517a2a625012c0967ced81564a2cf52eff1529cdc58372a631f0d5bbb0b8684cb17b4518b22b92c77351a98e4d349deef
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --color
2
+ --format documentation
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,60 @@
1
+ inherit_gem:
2
+ gitlab-styles:
3
+ - rubocop-default.yml
4
+
5
+ inherit_from:
6
+ <% unless ENV['REVEAL_RUBOCOP_TODO'] == '1' %>
7
+ - '.rubocop_todo.yml'
8
+ <% end %>
9
+
10
+ AllCops:
11
+ # Target the current Ruby version. For example, "2.7" or "3.0".
12
+ TargetRubyVersion: <%= RUBY_VERSION[/^\d+\.\d+/, 0] %>
13
+ Exclude:
14
+ - 'vendor/**/*'
15
+ - 'tmp/**/*'
16
+ - 'bin/**/*'
17
+ # Use absolute path to avoid orphan directories with changed workspace root.
18
+ CacheRootDirectory: <%= Dir.getwd %>/tmp
19
+ MaxFilesInCache: 1_000_000
20
+ NewCops: enable
21
+
22
+ Gemspec/RequireMFA:
23
+ Enabled: false
24
+
25
+ Lint/HashCompareByIdentity:
26
+ Enabled: true
27
+
28
+ Lint/RedundantSafeNavigation:
29
+ Enabled: true
30
+
31
+ Style/ClassEqualityComparison:
32
+ Enabled: true
33
+
34
+ Lint/ShadowingOuterLocalVariable:
35
+ Enabled: false
36
+
37
+ Metrics/AbcSize:
38
+ Max: 18
39
+
40
+ Metrics/MethodLength:
41
+ Max: 20
42
+
43
+ Rails:
44
+ Enabled: false
45
+
46
+ Style/ModuleFunction:
47
+ Enabled: false
48
+
49
+ Style/SignalException:
50
+ Enabled: false
51
+
52
+ Layout/SpaceBeforeFirstArg:
53
+ Enabled: false
54
+
55
+ RSpec/MultipleMemoizedHelpers:
56
+ Enabled: false
57
+
58
+ CodeReuse/ActiveRecord:
59
+ Exclude:
60
+ - 'spec/**/*_spec.rb'
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,28 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2023-05-02 23:14:58 UTC using RuboCop version 1.43.0.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 1
10
+ # This cop supports safe autocorrection (--autocorrect).
11
+ Cop/CustomErrorClass:
12
+ Exclude:
13
+ - 'lib/gitlab_quality/test_tooling.rb'
14
+
15
+ # Offense count: 1
16
+ # This cop supports safe autocorrection (--autocorrect).
17
+ # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
18
+ # Include: **/*.gemspec
19
+ Gemspec/OrderedDependencies:
20
+ Exclude:
21
+ - 'gitlab_quality-test_tooling.gemspec'
22
+
23
+ # Offense count: 1
24
+ # Configuration parameters: Severity, Include.
25
+ # Include: **/*.gemspec
26
+ Gemspec/RequiredRubyVersion:
27
+ Exclude:
28
+ - 'gitlab_quality-test_tooling.gemspec'
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.0.5
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at remy@rymai.me. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [https://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,40 @@
1
+ ## Developer Certificate of Origin and License
2
+
3
+ By contributing to GitLab B.V., you accept and agree to the following terms and
4
+ conditions for your present and future contributions submitted to GitLab B.V.
5
+ Except for the license granted herein to GitLab B.V. and recipients of software
6
+ distributed by GitLab B.V., you reserve all right, title, and interest in and to
7
+ your Contributions.
8
+
9
+ All contributions are subject to the Developer Certificate of Origin and license set out at [docs.gitlab.com/ce/legal/developer_certificate_of_origin](https://docs.gitlab.com/ce/legal/developer_certificate_of_origin).
10
+
11
+ _This notice should stay as the first item in the CONTRIBUTING.md file._
12
+
13
+ ## Code of conduct
14
+
15
+ As contributors and maintainers of this project, we pledge to respect all people
16
+ who contribute through reporting issues, posting feature requests, updating
17
+ documentation, submitting pull requests or patches, and other activities.
18
+
19
+ We are committed to making participation in this project a harassment-free
20
+ experience for everyone, regardless of level of experience, gender, gender
21
+ identity and expression, sexual orientation, disability, personal appearance,
22
+ body size, race, ethnicity, age, or religion.
23
+
24
+ Examples of unacceptable behavior by participants include the use of sexual
25
+ language or imagery, derogatory comments or personal attacks, trolling, public
26
+ or private harassment, insults, or other unprofessional conduct.
27
+
28
+ Project maintainers have the right and responsibility to remove, edit, or reject
29
+ comments, commits, code, wiki edits, issues, and other contributions that are
30
+ not aligned to this Code of Conduct. Project maintainers who do not follow the
31
+ Code of Conduct may be removed from the project team.
32
+
33
+ This code of conduct applies both within project spaces and in public spaces
34
+ when an individual is representing the project or its community.
35
+
36
+ Instances of abusive, harassing, or otherwise unacceptable behavior can be
37
+ reported by emailing contact@gitlab.com.
38
+
39
+ This Code of Conduct is adapted from the [Contributor Covenant](https://contributor-covenant.org), version 1.1.0,
40
+ available at [https://contributor-covenant.org/version/1/1/0/](https://contributor-covenant.org/version/1/1/0/).
data/Dangerfile ADDED
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "gitlab-dangerfiles"
4
+
5
+ Gitlab::Dangerfiles.for_project(self, &:import_defaults)
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in gitlab_quality-test_tooling.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,277 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ gitlab_quality-test_tooling (0.1.0)
5
+ activesupport (~> 6.1)
6
+ gitlab (~> 4.18.0)
7
+ http (~> 5.0)
8
+ nokogiri (~> 1.10)
9
+ parallel (>= 1, < 2)
10
+ rainbow (>= 3, < 4)
11
+ table_print (= 1.5.7)
12
+ zeitwerk (>= 2, < 3)
13
+
14
+ GEM
15
+ remote: https://rubygems.org/
16
+ specs:
17
+ activesupport (6.1.7.3)
18
+ concurrent-ruby (~> 1.0, >= 1.0.2)
19
+ i18n (>= 1.6, < 2)
20
+ minitest (>= 5.1)
21
+ tzinfo (~> 2.0)
22
+ zeitwerk (~> 2.3)
23
+ addressable (2.8.4)
24
+ public_suffix (>= 2.0.2, < 6.0)
25
+ ast (2.4.2)
26
+ backport (1.2.0)
27
+ benchmark (0.2.1)
28
+ claide (1.1.0)
29
+ claide-plugins (0.9.2)
30
+ cork
31
+ nap
32
+ open4 (~> 1.3)
33
+ climate_control (1.2.0)
34
+ coderay (1.1.3)
35
+ colored2 (3.1.2)
36
+ concurrent-ruby (1.2.2)
37
+ cork (0.3.0)
38
+ colored2 (~> 3.1)
39
+ crack (0.4.5)
40
+ rexml
41
+ danger (9.3.0)
42
+ claide (~> 1.0)
43
+ claide-plugins (>= 0.9.2)
44
+ colored2 (~> 3.1)
45
+ cork (~> 0.1)
46
+ faraday (>= 0.9.0, < 3.0)
47
+ faraday-http-cache (~> 2.0)
48
+ git (~> 1.13.0)
49
+ kramdown (~> 2.3)
50
+ kramdown-parser-gfm (~> 1.0)
51
+ no_proxy_fix
52
+ octokit (~> 5.0)
53
+ terminal-table (>= 1, < 4)
54
+ danger-gitlab (8.0.0)
55
+ danger
56
+ gitlab (~> 4.2, >= 4.2.0)
57
+ diff-lcs (1.5.0)
58
+ docile (1.4.0)
59
+ domain_name (0.5.20190701)
60
+ unf (>= 0.0.5, < 1.0.0)
61
+ e2mmap (0.1.0)
62
+ faraday (2.7.4)
63
+ faraday-net_http (>= 2.0, < 3.1)
64
+ ruby2_keywords (>= 0.0.4)
65
+ faraday-http-cache (2.5.0)
66
+ faraday (>= 0.8)
67
+ faraday-net_http (3.0.2)
68
+ ffi (1.15.5)
69
+ ffi-compiler (1.0.1)
70
+ ffi (>= 1.0.0)
71
+ rake
72
+ formatador (1.1.0)
73
+ git (1.13.2)
74
+ addressable (~> 2.8)
75
+ rchardet (~> 1.8)
76
+ gitlab (4.18.0)
77
+ httparty (~> 0.18)
78
+ terminal-table (>= 1.5.1)
79
+ gitlab-dangerfiles (3.8.0)
80
+ danger (>= 8.4.5)
81
+ danger-gitlab (>= 8.0.0)
82
+ rake
83
+ gitlab-styles (10.0.0)
84
+ rubocop (~> 1.43.0)
85
+ rubocop-graphql (~> 0.18)
86
+ rubocop-performance (~> 1.15)
87
+ rubocop-rails (~> 2.17)
88
+ rubocop-rspec (~> 2.18)
89
+ guard (2.18.0)
90
+ formatador (>= 0.2.4)
91
+ listen (>= 2.7, < 4.0)
92
+ lumberjack (>= 1.0.12, < 2.0)
93
+ nenv (~> 0.1)
94
+ notiffany (~> 0.0)
95
+ pry (>= 0.13.0)
96
+ shellany (~> 0.0)
97
+ thor (>= 0.18.1)
98
+ guard-compat (1.2.1)
99
+ guard-rspec (4.7.3)
100
+ guard (~> 2.1)
101
+ guard-compat (~> 1.1)
102
+ rspec (>= 2.99.0, < 4.0)
103
+ hashdiff (1.0.1)
104
+ http (5.1.1)
105
+ addressable (~> 2.8)
106
+ http-cookie (~> 1.0)
107
+ http-form_data (~> 2.2)
108
+ llhttp-ffi (~> 0.4.0)
109
+ http-cookie (1.0.5)
110
+ domain_name (~> 0.5)
111
+ http-form_data (2.3.0)
112
+ httparty (0.21.0)
113
+ mini_mime (>= 1.0.0)
114
+ multi_xml (>= 0.5.2)
115
+ i18n (1.13.0)
116
+ concurrent-ruby (~> 1.0)
117
+ jaro_winkler (1.5.4)
118
+ json (2.6.3)
119
+ kramdown (2.4.0)
120
+ rexml
121
+ kramdown-parser-gfm (1.1.0)
122
+ kramdown (~> 2.0)
123
+ lefthook (1.3.11)
124
+ listen (3.8.0)
125
+ rb-fsevent (~> 0.10, >= 0.10.3)
126
+ rb-inotify (~> 0.9, >= 0.9.10)
127
+ llhttp-ffi (0.4.0)
128
+ ffi-compiler (~> 1.0)
129
+ rake (~> 13.0)
130
+ lumberjack (1.2.8)
131
+ method_source (1.0.0)
132
+ mini_mime (1.1.2)
133
+ mini_portile2 (2.8.1)
134
+ minitest (5.18.0)
135
+ multi_xml (0.6.0)
136
+ nap (1.1.0)
137
+ nenv (0.3.0)
138
+ no_proxy_fix (0.1.2)
139
+ nokogiri (1.14.3)
140
+ mini_portile2 (~> 2.8.0)
141
+ racc (~> 1.4)
142
+ notiffany (0.1.3)
143
+ nenv (~> 0.1)
144
+ shellany (~> 0.0)
145
+ octokit (5.6.1)
146
+ faraday (>= 1, < 3)
147
+ sawyer (~> 0.9)
148
+ open4 (1.3.4)
149
+ parallel (1.23.0)
150
+ parser (3.2.2.1)
151
+ ast (~> 2.4.1)
152
+ pry (0.14.2)
153
+ coderay (~> 1.1)
154
+ method_source (~> 1.0)
155
+ public_suffix (5.0.1)
156
+ racc (1.6.2)
157
+ rack (3.0.7)
158
+ rainbow (3.1.1)
159
+ rake (13.0.6)
160
+ rb-fsevent (0.11.2)
161
+ rb-inotify (0.10.1)
162
+ ffi (~> 1.0)
163
+ rbs (2.8.4)
164
+ rchardet (1.8.0)
165
+ regexp_parser (2.8.0)
166
+ reverse_markdown (2.1.1)
167
+ nokogiri
168
+ rexml (3.2.5)
169
+ rspec (3.12.0)
170
+ rspec-core (~> 3.12.0)
171
+ rspec-expectations (~> 3.12.0)
172
+ rspec-mocks (~> 3.12.0)
173
+ rspec-core (3.12.2)
174
+ rspec-support (~> 3.12.0)
175
+ rspec-expectations (3.12.3)
176
+ diff-lcs (>= 1.2.0, < 2.0)
177
+ rspec-support (~> 3.12.0)
178
+ rspec-mocks (3.12.5)
179
+ diff-lcs (>= 1.2.0, < 2.0)
180
+ rspec-support (~> 3.12.0)
181
+ rspec-support (3.12.0)
182
+ rubocop (1.43.0)
183
+ json (~> 2.3)
184
+ parallel (~> 1.10)
185
+ parser (>= 3.2.0.0)
186
+ rainbow (>= 2.2.2, < 4.0)
187
+ regexp_parser (>= 1.8, < 3.0)
188
+ rexml (>= 3.2.5, < 4.0)
189
+ rubocop-ast (>= 1.24.1, < 2.0)
190
+ ruby-progressbar (~> 1.7)
191
+ unicode-display_width (>= 2.4.0, < 3.0)
192
+ rubocop-ast (1.28.0)
193
+ parser (>= 3.2.1.0)
194
+ rubocop-capybara (2.18.0)
195
+ rubocop (~> 1.41)
196
+ rubocop-graphql (0.19.0)
197
+ rubocop (>= 0.87, < 2)
198
+ rubocop-performance (1.17.1)
199
+ rubocop (>= 1.7.0, < 2.0)
200
+ rubocop-ast (>= 0.4.0)
201
+ rubocop-rails (2.19.1)
202
+ activesupport (>= 4.2.0)
203
+ rack (>= 1.1)
204
+ rubocop (>= 1.33.0, < 2.0)
205
+ rubocop-rspec (2.20.0)
206
+ rubocop (~> 1.33)
207
+ rubocop-capybara (~> 2.17)
208
+ ruby-progressbar (1.13.0)
209
+ ruby2_keywords (0.0.5)
210
+ sawyer (0.9.2)
211
+ addressable (>= 2.3.5)
212
+ faraday (>= 0.17.3, < 3)
213
+ shellany (0.0.1)
214
+ simplecov (0.22.0)
215
+ docile (~> 1.1)
216
+ simplecov-html (~> 0.11)
217
+ simplecov_json_formatter (~> 0.1)
218
+ simplecov-cobertura (2.1.0)
219
+ rexml
220
+ simplecov (~> 0.19)
221
+ simplecov-html (0.12.3)
222
+ simplecov_json_formatter (0.1.4)
223
+ solargraph (0.49.0)
224
+ backport (~> 1.2)
225
+ benchmark
226
+ bundler (~> 2.0)
227
+ diff-lcs (~> 1.4)
228
+ e2mmap
229
+ jaro_winkler (~> 1.5)
230
+ kramdown (~> 2.3)
231
+ kramdown-parser-gfm (~> 1.1)
232
+ parser (~> 3.0)
233
+ rbs (~> 2.0)
234
+ reverse_markdown (~> 2.0)
235
+ rubocop (~> 1.38)
236
+ thor (~> 1.0)
237
+ tilt (~> 2.0)
238
+ yard (~> 0.9, >= 0.9.24)
239
+ table_print (1.5.7)
240
+ terminal-table (3.0.2)
241
+ unicode-display_width (>= 1.1.1, < 3)
242
+ thor (1.2.1)
243
+ tilt (2.1.0)
244
+ timecop (0.9.6)
245
+ tzinfo (2.0.6)
246
+ concurrent-ruby (~> 1.0)
247
+ unf (0.1.4)
248
+ unf_ext
249
+ unf_ext (0.0.8.2)
250
+ unicode-display_width (2.4.2)
251
+ webmock (3.7.0)
252
+ addressable (>= 2.3.6)
253
+ crack (>= 0.3.2)
254
+ hashdiff (>= 0.4.0, < 2.0.0)
255
+ yard (0.9.34)
256
+ zeitwerk (2.6.7)
257
+
258
+ PLATFORMS
259
+ ruby
260
+
261
+ DEPENDENCIES
262
+ climate_control (~> 1.2)
263
+ gitlab-dangerfiles (~> 3.8)
264
+ gitlab-styles (~> 10.0)
265
+ gitlab_quality-test_tooling!
266
+ guard-rspec (~> 4.7)
267
+ lefthook (~> 1.3)
268
+ rake (~> 13.0)
269
+ rspec (~> 3.12)
270
+ simplecov (~> 0.22)
271
+ simplecov-cobertura (~> 2.1)
272
+ solargraph (~> 0.41)
273
+ timecop (~> 0.9.5)
274
+ webmock (= 3.7.0)
275
+
276
+ BUNDLED WITH
277
+ 2.4.2
data/Guardfile ADDED
@@ -0,0 +1,72 @@
1
+ # frozen_string_literal: true
2
+
3
+ # A sample Guardfile
4
+ # More info at https://github.com/guard/guard#readme
5
+
6
+ ## Uncomment and set this to only include directories you want to watch
7
+ # directories %w(app lib config test spec features) \
8
+ # .select{|d| Dir.exist?(d) ? d : UI.warning("Directory #{d} does not exist")}
9
+
10
+ ## Note: if you are using the `directories` clause above and you are not
11
+ ## watching the project directory ('.'), then you will want to move
12
+ ## the Guardfile to a watched dir and symlink it back, e.g.
13
+ #
14
+ # $ mkdir config
15
+ # $ mv Guardfile config/
16
+ # $ ln -s config/Guardfile .
17
+ #
18
+ # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
19
+
20
+ # Note: The cmd option is now required due to the increasing number of ways
21
+ # rspec may be run, below are examples of the most common uses.
22
+ # * bundler: 'bundle exec rspec'
23
+ # * bundler binstubs: 'bin/rspec'
24
+ # * spring: 'bin/rspec' (This will use spring if running and you have
25
+ # installed the spring binstubs per the docs)
26
+ # * zeus: 'zeus rspec' (requires the server to be started separately)
27
+ # * 'just' rspec: 'rspec'
28
+
29
+ guard :rspec, cmd: "bundle exec rspec" do
30
+ require "guard/rspec/dsl"
31
+ dsl = Guard::RSpec::Dsl.new(self)
32
+
33
+ # Feel free to open issues for suggestions and improvements
34
+
35
+ # RSpec files
36
+ rspec = dsl.rspec
37
+ watch(rspec.spec_helper) { rspec.spec_dir }
38
+ watch(rspec.spec_support) { rspec.spec_dir }
39
+ watch(rspec.spec_files)
40
+
41
+ # Ruby files
42
+ ruby = dsl.ruby
43
+ dsl.watch_spec_files_for(ruby.lib_files)
44
+
45
+ # Rails files
46
+ rails = dsl.rails(view_extensions: %w[erb haml slim])
47
+ dsl.watch_spec_files_for(rails.app_files)
48
+ dsl.watch_spec_files_for(rails.views)
49
+
50
+ watch(rails.controllers) do |m|
51
+ [
52
+ rspec.spec.call("routing/#{m[1]}_routing"),
53
+ rspec.spec.call("controllers/#{m[1]}_controller"),
54
+ rspec.spec.call("acceptance/#{m[1]}")
55
+ ]
56
+ end
57
+
58
+ # Rails config changes
59
+ watch(rails.spec_helper) { rspec.spec_dir }
60
+ watch(rails.routes) { "#{rspec.spec_dir}/routing" }
61
+ watch(rails.app_controller) { "#{rspec.spec_dir}/controllers" }
62
+
63
+ # Capybara features specs
64
+ watch(rails.view_dirs) { |m| rspec.spec.call("features/#{m[1]}") }
65
+ watch(rails.layouts) { |m| rspec.spec.call("features/#{m[1]}") }
66
+
67
+ # Turnip features and steps
68
+ watch(%r{^spec/acceptance/(.+)\.feature$})
69
+ watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
70
+ Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance"
71
+ end
72
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,25 @@
1
+ Copyright (c) GitLab Inc
2
+
3
+ With regard to the GitLab Software:
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
22
+
23
+ For all third party components incorporated into the GitLab Software, those
24
+ components are licensed under the original license provided by the owner of the
25
+ applicable component.
data/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # `GitlabQuality::TestTooling`
2
+
3
+ TODO: Delete this and the text below, and describe your gem
4
+
5
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/gitlab_quality/test_tooling`. To experiment with that code, run `bin/console` for an interactive prompt.
6
+
7
+ ## Installation
8
+
9
+ Install the gem and add to the application's Gemfile by executing:
10
+
11
+ $ bundle add gitlab_quality-test_tooling
12
+
13
+ If bundler is not being used to manage dependencies, install the gem by executing:
14
+
15
+ $ gem install gitlab_quality-test_tooling
16
+
17
+ ## Usage
18
+
19
+ TODO: Write usage instructions here
20
+
21
+ ## Development
22
+
23
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
24
+
25
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
26
+
27
+ ## License
28
+
29
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
30
+
31
+ ## Code of Conduct
32
+
33
+ Everyone interacting in the GitlabQuality::TestTooling project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://gitlab.com/gitlab-org/ruby/gems/gitlab_quality-test_tooling/-/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+ require "rubocop/rake_task"
6
+
7
+ RSpec::Core::RakeTask.new(:spec)
8
+ RuboCop::RakeTask.new
9
+
10
+ task default: %i[spec rubocop]
data/lefthook.yml ADDED
@@ -0,0 +1,15 @@
1
+ # Lefthook configuration. For more information, see:
2
+ # https://github.com/Arkweid/lefthook/blob/master/docs/full_guide.md
3
+
4
+ pre-push:
5
+ parallel: true
6
+ commands:
7
+ # Run all tests (warn if there are any missing tools required for tests).
8
+ rspec:
9
+ run: bundle exec rspec -f progress
10
+ glob: '*.rb'
11
+
12
+ # Run ruby linting
13
+ rubocop:
14
+ run: bundle exec rubocop
15
+ glob: '*.rb'
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module GitlabQuality
4
+ module TestTooling
5
+ VERSION = "0.1.0"
6
+ end
7
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "test_tooling/version"
4
+
5
+ module GitlabQuality
6
+ module TestTooling
7
+ Error = Class.new(StandardError)
8
+ # Your code goes here...
9
+ end
10
+ end
@@ -0,0 +1,6 @@
1
+ module GitlabQuality
2
+ module TestTooling
3
+ VERSION: String
4
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
5
+ end
6
+ end
metadata ADDED
@@ -0,0 +1,361 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gitlab_quality-test_tooling
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - GitLab Quality
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2023-05-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: climate_control
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.2'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: gitlab-dangerfiles
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.8'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.8'
41
+ - !ruby/object:Gem::Dependency
42
+ name: gitlab-styles
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: guard-rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '4.7'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '4.7'
69
+ - !ruby/object:Gem::Dependency
70
+ name: lefthook
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.3'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.3'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rake
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '13.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '13.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '3.12'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '3.12'
111
+ - !ruby/object:Gem::Dependency
112
+ name: simplecov
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '0.22'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '0.22'
125
+ - !ruby/object:Gem::Dependency
126
+ name: simplecov-cobertura
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '2.1'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '2.1'
139
+ - !ruby/object:Gem::Dependency
140
+ name: solargraph
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '0.41'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '0.41'
153
+ - !ruby/object:Gem::Dependency
154
+ name: timecop
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 0.9.5
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: 0.9.5
167
+ - !ruby/object:Gem::Dependency
168
+ name: webmock
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - '='
172
+ - !ruby/object:Gem::Version
173
+ version: 3.7.0
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - '='
179
+ - !ruby/object:Gem::Version
180
+ version: 3.7.0
181
+ - !ruby/object:Gem::Dependency
182
+ name: activesupport
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '6.1'
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '6.1'
195
+ - !ruby/object:Gem::Dependency
196
+ name: gitlab
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: 4.18.0
202
+ type: :runtime
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: 4.18.0
209
+ - !ruby/object:Gem::Dependency
210
+ name: http
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - "~>"
214
+ - !ruby/object:Gem::Version
215
+ version: '5.0'
216
+ type: :runtime
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - "~>"
221
+ - !ruby/object:Gem::Version
222
+ version: '5.0'
223
+ - !ruby/object:Gem::Dependency
224
+ name: nokogiri
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - "~>"
228
+ - !ruby/object:Gem::Version
229
+ version: '1.10'
230
+ type: :runtime
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - "~>"
235
+ - !ruby/object:Gem::Version
236
+ version: '1.10'
237
+ - !ruby/object:Gem::Dependency
238
+ name: parallel
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - ">="
242
+ - !ruby/object:Gem::Version
243
+ version: '1'
244
+ - - "<"
245
+ - !ruby/object:Gem::Version
246
+ version: '2'
247
+ type: :runtime
248
+ prerelease: false
249
+ version_requirements: !ruby/object:Gem::Requirement
250
+ requirements:
251
+ - - ">="
252
+ - !ruby/object:Gem::Version
253
+ version: '1'
254
+ - - "<"
255
+ - !ruby/object:Gem::Version
256
+ version: '2'
257
+ - !ruby/object:Gem::Dependency
258
+ name: rainbow
259
+ requirement: !ruby/object:Gem::Requirement
260
+ requirements:
261
+ - - ">="
262
+ - !ruby/object:Gem::Version
263
+ version: '3'
264
+ - - "<"
265
+ - !ruby/object:Gem::Version
266
+ version: '4'
267
+ type: :runtime
268
+ prerelease: false
269
+ version_requirements: !ruby/object:Gem::Requirement
270
+ requirements:
271
+ - - ">="
272
+ - !ruby/object:Gem::Version
273
+ version: '3'
274
+ - - "<"
275
+ - !ruby/object:Gem::Version
276
+ version: '4'
277
+ - !ruby/object:Gem::Dependency
278
+ name: table_print
279
+ requirement: !ruby/object:Gem::Requirement
280
+ requirements:
281
+ - - '='
282
+ - !ruby/object:Gem::Version
283
+ version: 1.5.7
284
+ type: :runtime
285
+ prerelease: false
286
+ version_requirements: !ruby/object:Gem::Requirement
287
+ requirements:
288
+ - - '='
289
+ - !ruby/object:Gem::Version
290
+ version: 1.5.7
291
+ - !ruby/object:Gem::Dependency
292
+ name: zeitwerk
293
+ requirement: !ruby/object:Gem::Requirement
294
+ requirements:
295
+ - - ">="
296
+ - !ruby/object:Gem::Version
297
+ version: '2'
298
+ - - "<"
299
+ - !ruby/object:Gem::Version
300
+ version: '3'
301
+ type: :runtime
302
+ prerelease: false
303
+ version_requirements: !ruby/object:Gem::Requirement
304
+ requirements:
305
+ - - ">="
306
+ - !ruby/object:Gem::Version
307
+ version: '2'
308
+ - - "<"
309
+ - !ruby/object:Gem::Version
310
+ version: '3'
311
+ description: A collection of test-related tools.
312
+ email:
313
+ - quality@gitlab.com
314
+ executables: []
315
+ extensions: []
316
+ extra_rdoc_files: []
317
+ files:
318
+ - ".rspec"
319
+ - ".rubocop.yml"
320
+ - ".rubocop_todo.yml"
321
+ - ".ruby-version"
322
+ - CODE_OF_CONDUCT.md
323
+ - CONTRIBUTING.md
324
+ - Dangerfile
325
+ - Gemfile
326
+ - Gemfile.lock
327
+ - Guardfile
328
+ - LICENSE.txt
329
+ - README.md
330
+ - Rakefile
331
+ - lefthook.yml
332
+ - lib/gitlab_quality/test_tooling.rb
333
+ - lib/gitlab_quality/test_tooling/version.rb
334
+ - sig/gitlab_quality/test_tooling.rbs
335
+ homepage: https://gitlab.com/gitlab-org/ruby/gems/gitlab_quality-test_tooling
336
+ licenses:
337
+ - MIT
338
+ metadata:
339
+ homepage_uri: https://gitlab.com/gitlab-org/ruby/gems/gitlab_quality-test_tooling
340
+ source_code_uri: https://gitlab.com/gitlab-org/ruby/gems/gitlab_quality-test_tooling
341
+ changelog_uri: https://gitlab.com/gitlab-org/ruby/gems/gitlab_quality-test_tooling/-/releases
342
+ post_install_message:
343
+ rdoc_options: []
344
+ require_paths:
345
+ - lib
346
+ required_ruby_version: !ruby/object:Gem::Requirement
347
+ requirements:
348
+ - - ">="
349
+ - !ruby/object:Gem::Version
350
+ version: 2.6.0
351
+ required_rubygems_version: !ruby/object:Gem::Requirement
352
+ requirements:
353
+ - - ">="
354
+ - !ruby/object:Gem::Version
355
+ version: '0'
356
+ requirements: []
357
+ rubygems_version: 3.1.6
358
+ signing_key:
359
+ specification_version: 4
360
+ summary: A collection of test-related tools.
361
+ test_files: []