test-prof 0.12.0 → 0.12.1

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: 64b1be0cdb0b04518ed2fb900756fd07d212f79709d76e784798384fb92a2a5f
4
- data.tar.gz: fa59a7d025eda4e53ce0381cc9c973cbcad50e0c4584b1ca30aa5cfb1e9d0ebc
3
+ metadata.gz: 89c1d2f72a772c731bcb32ee68a21129e82a003a40a194f6a503a31e5b445954
4
+ data.tar.gz: 6ed48924861ec8523a083ba853bf5de43579df0624f95e003ca6d417c9b4e076
5
5
  SHA512:
6
- metadata.gz: d08d874b6948df045adbdba66960abbb47e2fe8fd55700b8f9f4ab6a411f94ffd632d15937c30df36728709440be7209f21951a47b66f54c1ea39669aed35b72
7
- data.tar.gz: 955199e5fce56fea5237bc07151526e83156ebd7f3f74f00a05eac5b7da20ad9b7ffe21807c8c7644327bc13020315d8262436e65f323057fd75be4378a89342
6
+ metadata.gz: 7c62484546cda02e28ce819790cb3479004a970dc1c88849eb7ff3e55114b71710774f0dbc2ce7d4874036a5513f10585c3c4d805db05a75c93acb69a36436cb
7
+ data.tar.gz: 4b6d8438fff041a84975c52428f50a03d9f4519a08a2884a35ae45bb43df4c11fa7f375a041477928a1009610dd0dc96d1e702ba6728eb4a2db8a6e147c3119b
@@ -1,27 +1,33 @@
1
1
  # Change log
2
2
 
3
+ ## master (unrealeased)
4
+
5
+ ## 0.12.1 (2020-09-01)
6
+
7
+ - Minor improvements.
8
+
3
9
  ## 0.12.0 (2020-07-17)
4
10
 
5
11
  - Add state leakage detection for `let_it_be`. ([@pirj][], [@jaimerson][], [@alexvko][])
6
12
 
7
13
  - Add default let_it_be modifiers configuration. ([@palkan][])
8
14
 
9
- You can configure global modifiers:
15
+ You can configure global modifiers:
10
16
 
11
- ```ruby
12
- TestProf::LetItBe.configure do |config|
13
- # Make refind activated by default
14
- config.default_modifiers[:refind] = true
15
- end
16
- ```
17
+ ```ruby
18
+ TestProf::LetItBe.configure do |config|
19
+ # Make refind activated by default
20
+ config.default_modifiers[:refind] = true
21
+ end
22
+ ```
17
23
 
18
- Or for specific contexts via tags:
24
+ Or for specific contexts via tags:
19
25
 
20
- ```ruby
21
- context "with let_it_be reload", let_it_be_modifiers: {reload: true} do
22
- # examples
23
- end
24
- ```
26
+ ```ruby
27
+ context "with let_it_be reload", let_it_be_modifiers: {reload: true} do
28
+ # examples
29
+ end
30
+ ```
25
31
 
26
32
  - **Drop Ruby 2.4 support.** ([@palkan][])
27
33
 
@@ -31,7 +37,7 @@
31
37
 
32
38
  EventProf results now is not affected by `Timecop.freeze` or similar.
33
39
 
34
- See more in [#181](https://github.com/palkan/test-prof/issues/181).
40
+ See more in [#181](https://github.com/test-prof/test-prof/issues/181).
35
41
 
36
42
  - Adds the ability to define stackprof's interval sampling by using `TEST_STACK_PROF_INTERVAL` env variable ([@LynxEyes][])
37
43
 
@@ -49,7 +55,7 @@
49
55
 
50
56
  - Add `config/` to the gem contents. ([@palkan][])
51
57
 
52
- Fixes RuboCop integration regression from 0.11.0.
58
+ Fixes RuboCop integration regression from 0.11.0.
53
59
 
54
60
  ## 0.11.0 (2020-02-09)
55
61
 
@@ -75,33 +81,33 @@
75
81
 
76
82
  - Use RSpec example ID instead of full description for RubyProf/Stackprof report names. ([@palkan][])
77
83
 
78
- For more complex scenarios feel free to use your own report name generator:
84
+ For more complex scenarios feel free to use your own report name generator:
79
85
 
80
- ```ruby
81
- # for RubyProf
82
- TestProf::RubyProf::Listener.report_name_generator = ->(example) { "..." }
83
- # for Stackprof
84
- TestProf::StackProf::Listener.report_name_generator = ->(example) { "..." }
85
- ```
86
+ ```ruby
87
+ # for RubyProf
88
+ TestProf::RubyProf::Listener.report_name_generator = ->(example) { "..." }
89
+ # for Stackprof
90
+ TestProf::StackProf::Listener.report_name_generator = ->(example) { "..." }
91
+ ```
86
92
 
87
93
  - Support arrays in `let_it_be` with modifiers. ([@palkan][])
88
94
 
89
- ```ruby
90
- # Now you can use modifiers with arrays
91
- let_it_be(:posts, reload: true) { create_pair(:post) }
92
- ```
95
+ ```ruby
96
+ # Now you can use modifiers with arrays
97
+ let_it_be(:posts, reload: true) { create_pair(:post) }
98
+ ```
93
99
 
94
100
  - Refactor `let_it_be` modifiers and allow adding custom modifiers. ([@palkan][])
95
101
 
96
- ```ruby
97
- TestProf::LetItBe.config.register_modifier :reload do |record, val|
98
- # ignore when `reload: false`
99
- next record unless val
100
- # ignore non-ActiveRecord objects
101
- next record unless record.is_a?(::ActiveRecord::Base)
102
- record.reload
103
- end
104
- ```
102
+ ```ruby
103
+ TestProf::LetItBe.config.register_modifier :reload do |record, val|
104
+ # ignore when `reload: false`
105
+ next record unless val
106
+ # ignore non-ActiveRecord objects
107
+ next record unless record.is_a?(::ActiveRecord::Base)
108
+ record.reload
109
+ end
110
+ ```
105
111
 
106
112
  - Print warning when `ActiveRecordSharedConnection` is used in the version of Rails
107
113
  supporting `lock_threads` (5.1+). ([@palkan][])
@@ -110,450 +116,54 @@ supporting `lock_threads` (5.1+). ([@palkan][])
110
116
 
111
117
  - Add threshold and custom event support to FactoryDoctor. ([@palkan][])
112
118
 
113
- ```sh
114
- $ FDOC=1 FDOC_EVENT="sql.rom" FDOC_THRESHOLD=0.1 rspec
115
- ```
119
+ ```sh
120
+ $ FDOC=1 FDOC_EVENT="sql.rom" FDOC_THRESHOLD=0.1 rspec
121
+ ```
116
122
 
117
123
  - Add Fabrication support to FactoryDoctor. ([@palkan][])
118
124
 
119
125
  - Add `guard` and `top_level` options to `EventProf::Monitor`. ([@palkan][])
120
126
 
121
- For example:
127
+ For example:
122
128
 
123
- ```ruby
124
- TestProf::EventProf.monitor(
125
- Sidekiq::Client,
126
- "sidekiq.inline",
127
- :raw_push,
128
- top_level: true,
129
- guard: ->(*) { Sidekiq::Testing.inline? }
130
- )
131
- ```
129
+ ```ruby
130
+ TestProf::EventProf.monitor(
131
+ Sidekiq::Client,
132
+ "sidekiq.inline",
133
+ :raw_push,
134
+ top_level: true,
135
+ guard: ->(*) { Sidekiq::Testing.inline? }
136
+ )
137
+ ```
132
138
 
133
139
  - Add global `before_all` hooks. ([@danielwaterworth][], [@palkan][])
134
140
 
135
- Now you can run additional code before and after every `before_all` transaction
136
- begins and rollbacks:
141
+ Now you can run additional code before and after every `before_all` transaction
142
+ begins and rollbacks:
137
143
 
138
- ```ruby
139
- TestProf::BeforeAll.configure do |config|
140
- config.before(:begin) do
141
- # do something before transaction opens
142
- end
144
+ ```ruby
145
+ TestProf::BeforeAll.configure do |config|
146
+ config.before(:begin) do
147
+ # do something before transaction opens
148
+ end
143
149
 
144
- config.after(:rollback) do
145
- # do something after transaction closes
146
- end
150
+ config.after(:rollback) do
151
+ # do something after transaction closes
147
152
  end
148
- ```
153
+ end
154
+ ```
149
155
 
150
156
  - Add ability to use `let_it_be` aliases with predefined options. ([@danielwaterworth][])
151
157
 
152
- ```ruby
153
- TestProf::LetItBe.configure do |config|
154
- config.alias_to :let_it_be_with_refind, refind: true
155
- end
156
- ```
158
+ ```ruby
159
+ TestProf::LetItBe.configure do |config|
160
+ config.alias_to :let_it_be_with_refind, refind: true
161
+ end
162
+ ```
157
163
 
158
164
  - Made FactoryProf measure and report on timing ([@danielwaterworth][])
159
165
 
160
- ## 0.8.0 (2019-04-12) 🚀
161
-
162
- - **Ruby 2.4+ is requiered** ([@palkan][])
163
-
164
- - **RSpec 3.5+ is requiered for RSpec features** ([@palkan][])
165
-
166
- - Make `before_all` compatible with [`isolator`](https://github.com/palkan/isolator). ([@palkan][])
167
-
168
- - Add `with_logging` and `with_ar_logging` helpers to logging recipe. ([@palkan][])
169
-
170
- - Make `before_all` for Active Record `lock_thread` aware. ([@palkan][])
171
-
172
- `before_all` can went crazy if you open multiple connections within it
173
- (since it tracks the number of open transactions).
174
- Rails 5+ `lock_thread` feature only locks the connection thread in
175
- `before`/`setup` hook thus making it possible to have multiple connections/transactions
176
- in `before_all` (e.g. performing jobs with Active Job async adapter).
177
-
178
- ## 0.7.5 (2019-02-22)
179
-
180
- - Make `let_it_be` and `before_all` work with `include_context`. ([@palkan][])
181
-
182
- Fixes [#117](https://github.com/palkan/test-prof/issues/117)
183
-
184
- ## 0.7.4 (2019-02-16)
185
-
186
- - Add JSON report support for StackProf. ([@palkan][])
187
-
188
- - Add ability to specify report/artifact name suffixes. ([@palkan][])
189
-
190
- ## 0.7.3 (2018-11-07)
191
-
192
- - Add a header with the general information on factories usage [#99](https://github.com/palkan/test-prof/issues/99) ([@szemek][])
193
-
194
- - Improve test sampling.([@mkldon][])
195
-
196
- ```bash
197
- $ SAMPLE=10 rake test # runs 10 random test examples
198
- $ SAMPLE_GROUPS=10 rake test # runs 10 random example groups
199
- ```
200
-
201
- - Extend Event Prof formatter to include the absolute run time and the percentage of the event tim [#100](https://github.com/palkan/test-prof/issues/100) ([@dmagro][])
202
-
203
- ## 0.7.2 (2018-10-08)
204
-
205
- - Add `RSpec/AggregateFailures` support for non-regular 'its' examples. ([@broels][])
206
-
207
- ## 0.7.1 (2018-08-20)
208
-
209
- - Add ability to ignore connection configurations in shared connection.([@palkan][])
210
-
211
- Example:
212
-
213
- ```ruby
214
- # Do not use shared connection for sqlite db
215
- TestProf::ActiveRecordSharedConnection.ignore { |config| config[:adapter] == "sqlite3" }
216
- ```
217
-
218
- ## 0.7.0 (2018-08-12)
219
-
220
- - **Ruby 2.3+ is required**. ([@palkan][])
221
-
222
- Ruby 2.2 EOL was on 2018-03-31.
223
-
224
- - Upgrade RubyProf integration to `ruby-prof >= 0.17`. ([@palkan][])
225
-
226
- Use `exclude_common_methods!` instead of the deprecated `eliminate_methods!`.
227
-
228
- Add RSpec specific exclusions.
229
-
230
- Add ability to specify custom exclusions through `config.custom_exclusions`, e.g.:
231
-
232
- ```ruby
233
- TestProf::RubyProf.configure do |config|
234
- config.custom_exclusions = {User => %i[save save!]}
235
- end
236
- ```
237
-
238
- ## 0.6.0 (2018-06-29)
239
-
240
- ### Features
241
-
242
- - Add `EventProf.monitor` to instrument arbitrary methods. ([@palkan][])
243
-
244
- Add custom instrumetation easily:
245
-
246
- ```ruby
247
- class Work
248
- def do
249
- # ...
250
- end
251
- end
252
-
253
- # Instrument Work#do calls with "my.work" event
254
- TestProf::EventProf.monitor(Work, "my.work", :do)
255
- ```
256
-
257
- [📝 Docs](https://test-prof.evilmartians.io/#/event_prof?id=profile-arbitrary-methods)
258
-
259
- - Adapterize `before_all`. ([@palkan][])
260
-
261
- Now it's possible to write your own adapter for `before_all` to manage transactions.
262
-
263
- [📝 Docs](https://test-prof.evilmartians.io/#/before_all?id=database-adapters)
264
-
265
- - Add `before_all` for Minitest. ([@palkan][])
266
-
267
- [📝 Docs](https://test-prof.evilmartians.io/#/before_all?id=minitest-experimental)
268
-
269
- ### Fixes & Improvements
270
-
271
- - Show top `let` declarations per example group in RSpecDissect profiler. ([@palkan][])
272
-
273
- The output now includes the following information:
274
-
275
- ```
276
- Top 5 slowest suites (by `let` time):
277
-
278
- FunnelsController (./spec/controllers/funnels_controller_spec.rb:3) – 00:38.532 of 00:43.649 (133)
279
- ↳ user – 3
280
- ↳ funnel – 2
281
- ApplicantsController (./spec/controllers/applicants_controller_spec.rb:3) – 00:33.252 of 00:41.407 (222)
282
- ↳ user – 10
283
- ↳ funnel – 5
284
- ```
285
-
286
- Enabled by default. Disable it with:
287
-
288
- ```ruby
289
- TestProf::RSpecDissect.configure do |config|
290
- config.let_stats_enabled = false
291
- end
292
- ```
293
-
294
- - [Fix [#80](https://github.com/palkan/test-prof/issues/80)] Added ability to preserve traits. ([@Vasfed][])
295
-
296
- Disabled by default for compatibility. Enable globally by `FactoryDefault.preserve_traits = true` or for single `create_default`: `create_default(:user, preserve_traits: true)`
297
-
298
- When enabled - default object will be used only when there's no [traits](https://github.com/thoughtbot/factory_bot/blob/master/GETTING_STARTED.md#traits) in association.
299
-
300
- - Add ability to run only `let` or `before` profiler with RSpecDissect. ([@palkan][])
301
-
302
- - Collect _raw_ data with StackProf by default. ([@palkan][])
303
-
304
- - Refactor `:with_clean_fixture` to clean data once per group. ([@palkan][])
305
-
306
- - [Fix [#75](https://github.com/palkan/test-prof/issues/75)] Fix `RSpec/Aggregate` failures with non-regular examples. ([@palkan][])
307
-
308
- Do not take into account `xit`, `pending`, `its`, etc. examples,
309
- only consider regular `it`, `specify`, `scenario`, `example`.
310
-
311
- ## 0.5.0 (2018-04-25)
312
-
313
- ### Features
314
-
315
- - Add events support to TagProf. ([@palkan][])
316
-
317
- Example usage:
318
-
319
- ```sh
320
- TAG_PROF=type TAG_PROF_EVENT=sql.active_record rspec
321
- ```
322
-
323
- [📝 Docs](https://test-prof.evilmartians.io/#/tag_prof?id=profiling-events)
324
-
325
- - Add logging helpers for Rails. ([@palkan][])
326
-
327
- Enable verbose logging globally:
328
-
329
- ```sh
330
- LOG=all rspec
331
- ```
332
-
333
- Or per example (group):
334
-
335
- ```ruby
336
- it "does smth weird", :log do
337
- # ...
338
- end
339
- ```
340
-
341
- [📝 Docs](https://test-prof.evilmartians.io/#/logging)
342
-
343
- - Add HTML report for `TagProf`. ([@palkan][])
344
-
345
- Generate HTML report by setting `TAG_PROF_FORMAT` to `html`.
346
-
347
- - Add ability to track multiple events at the same time with `EventProf`. ([@palkan][])
348
-
349
- - Add `AnyFixture` DSL. ([@palkan][])
350
-
351
- Example:
352
-
353
- ```ruby
354
- # Enable DSL
355
- using TestProf::AnyFixture::DSL
356
-
357
- # and then you can use `fixture` method (which is just an alias for `TestProf::AnyFixture.register`)
358
- before(:all) { fixture(:account) }
359
-
360
- # You can also use it to fetch the record (instead of storing it in instance variable)
361
- let(:account) { fixture(:account) }
362
- ```
363
-
364
- [📝 Docs](https://test-prof.evilmartians.io/#/any_fixture?id=dsl)
365
-
366
- - Add `AnyFixture` usage report. ([@palkan][])
367
-
368
- Enable `AnyFixture` usage reporting with `ANYFIXTURE_REPORTING=1` or with:
369
-
370
- ```ruby
371
- TestProf::AnyFixture.reporting_enabled = true
372
- ```
373
-
374
- [📝 Docs](https://test-prof.evilmartians.io/#/any_fixture?id=usage-report)
375
-
376
- - Add `ActiveRecordSharedConnection` recipe. ([@palkan][])
377
-
378
- Force ActiveRecord to use the same connection between threads (to avoid database cleaning in browser tests).
379
-
380
- [📝 Docs](https://test-prof.evilmartians.io/#/active_record_shared_connection)
381
-
382
- - [#70](https://github.com/palkan/test-prof/pull/70) Add `FactoryAllStub` recipe. ([@palkan][])
383
-
384
- [📝 Docs](https://test-prof.evilmartians.io/#/factory_all_stub)
385
-
386
- - Add `ActiveRecordRefind` refinement. ([@palkan][])
387
-
388
- [📝 Docs](https://test-prof.evilmartians.io/#/any_fixture?id=activerecordrefind)
389
-
390
- ### Fixes & Improvements
391
-
392
- - **Brand new documentatation website: https://test-prof.evilmartians.io/**
393
-
394
- - Disable referential integrity when cleaning AnyFixture. ([@palkan][])
395
-
396
-
397
- ## 0.4.9 (2018-03-20)
398
-
399
- - [Fix [#64](https://github.com/palkan/test-prof/issues/64)] Fix dependencies requiring for FactoryDefault. ([@palkan][])
400
-
401
- - [Fix [#60](https://github.com/palkan/test-prof/issues/60)] Fix RSpecDissect reporter hooks. ([@palkan][])
402
-
403
- Consider only `example_failed` and `example_passed` to ensure that the `run_time`
404
- is available.
405
-
406
- ## 0.4.8 (2018-01-17)
407
-
408
- - Add `minitest` 5.11 support. ([@palkan][])
409
-
410
- - Fix `spring` detection. ([@palkan][])
411
-
412
- Some `spring`-related gems do not check whether Spring is running and load
413
- Spring modules. Thus we have `Spring` defined (and even `Spring.after_fork` defined) but no-op.
414
-
415
- Now we require that `Spring::Applcation` is defined in order to rely on Spring.
416
-
417
- Possibly fixes [#47](https://github.com/palkan/test-prof/issues/47).
418
-
419
- ## 0.4.7 (2017-12-25)
420
-
421
- - [#57](https://github.com/palkan/test-prof/pull/57) Fix RubyProf Printers Support ([@rabotyaga][])
422
-
423
- ## 0.4.6 (2017-12-17)
424
-
425
- - Upgrade RSpec/AggregateFailures to RuboCop 0.52.0. ([@palkan][])
426
-
427
- RuboCop < 0.51.0 is not supported anymore.
428
-
429
- - [Fixes [#49](https://github.com/palkan/test-prof/issues/49)] Correctly detect RSpec version in `let_it_be`. ([@desoleary][])
430
-
431
- ## 0.4.5 (2017-12-09)
432
-
433
- - Fix circular require in `lib/factory_doctor/minitest`. ([@palkan][])
434
-
435
- ## 0.4.4 (2017-11-08)
436
-
437
- - [Fixes [#48](https://github.com/palkan/test-prof/issues/48)] Respect RubyProf reports files extensions. ([@palkan][])
438
-
439
- ## 0.4.3 (2017-10-26)
440
-
441
- - [#46](https://github.com/palkan/test-prof/pull/46) Support FactoryBot, which is [former FactoryGirl](https://github.com/thoughtbot/factory_bot/pull/1051),
442
- while maintaining compatibility with latter. ([@Shkrt][])
443
-
444
- ## 0.4.2 (2017-10-23)
445
-
446
- - Fix bug with multiple `before_all` within one group. ([@palkan][])
447
-
448
- ## 0.4.1 (2017-10-18)
449
-
450
- - [#44](https://github.com/palkan/test-prof/pull/44) Support older versions of RSpec. ([@palkan][])
451
-
452
- Support RSpec 3.1.0+ in general.
453
-
454
- `let_it_be` supports only RSpec 3.3.0+.
455
-
456
- RSpecDissect `let` tracking supports only RSpec 3.3.0+.
457
-
458
- - [#38](https://github.com/palkan/test-prof/pull/38) Factory Doctor Minitest integration. ([@IDolgirev][])
459
-
460
- It is possible now to use Factory Doctor with Minitest
461
-
462
- ## 0.4.0 (2017-10-03)
463
-
464
- ### Features:
465
-
466
- - [#29](https://github.com/palkan/test-prof/pull/29) EventProf Minitest integration. ([@IDolgirev][])
467
-
468
- It is possible now to use Event Prof with Minitest
469
-
470
- - [#30](https://github.com/palkan/test-prof/pull/30) Fabrication support for FactoryProf. ([@Shkrt][])
471
-
472
- FactoryProf now also accounts objects created by Fabrication gem (in addition to FactoryGirl)
473
-
474
- ## 0.3.0 (2017-09-21)
475
-
476
- ### Features:
477
-
478
- - Combine RSpecStamp with FactoryDoctor. ([@palkan][])
479
-
480
- Automatically mark _bad_ examples with custom tags.
481
-
482
- - [#17](https://github.com/palkan/test-prof/pull/17) Combine RSpecStamp with EventProf and RSpecDissect. ([@palkan][])
483
-
484
- It is possible now to automatically mark _slow_ examples and groups with custom tags. For example:
485
-
486
- ```sh
487
- $ EVENT_PROF="sql.active_record" EVENT_PROF_STAMP="slow:sql" rspec ...
488
- ```
489
-
490
- After running the command above the top 5 slowest example groups would be marked with `slow: :sql` tag.
491
-
492
- - [#14](https://github.com/palkan/test-prof/pull/14) RSpecDissect profiler. ([@palkan][])
493
-
494
- RSpecDissect tracks how much time do you spend in `before` hooks and memoization helpers (i.e. `let`) in your tests.
495
-
496
- - [#13](https://github.com/palkan/test-prof/pull/13) RSpec `let_it_be` method. ([@palkan][])
497
-
498
- Just like `let`, but persist the result for the whole group (i.e. `let` + `before_all`).
499
-
500
- ### Improvements:
501
-
502
- - Add ability to specify RubyProf report through `TEST_RUBY_PROF` env variable. ([@palkan][])
503
-
504
- - Add ability to specify StackProf raw mode through `TEST_STACK_PROF` env variable. ([@palkan][])
505
-
506
- ### Changes
507
-
508
- - Use RubyProf `FlatPrinter` by default (was `CallStackPrinter`). ([@palkan][])
509
-
510
- ## 0.2.5 (2017-08-30)
511
-
512
- - [#16](https://github.com/palkan/test-prof/pull/16) Support Ruby >= 2.2.0 (was >= 2.3.0). ([@palkan][])
513
-
514
- ## 0.2.4 (2017-08-29)
515
-
516
- - EventProf: Fix regression bug with examples profiling. ([@palkan][])
517
-
518
- There was a bug when an event occurs before the example has started (e.g. in `before(:context)` hook).
519
-
520
- ## 0.2.3 (2017-08-28)
521
-
522
- - Minor improvements. ([@palkan][])
523
-
524
- ## 0.2.2 (2017-08-23)
525
-
526
- - Fix time calculation when Time class is monkey-patched. ([@palkan][])
527
-
528
- Add `TestProf.now` method which is just a copy of original `Time.now` and use it everywhere.
529
-
530
- Fixes [#10](https://github.com/palkan/test-prof/issues/10).
531
-
532
- ## 0.2.1 (2017-08-19)
533
-
534
- - Detect `RSpec` by checking the presence of `RSpec::Core`. ([@palkan][])
535
-
536
- Fixes [#8](https://github.com/palkan/test-prof/issues/8).
537
-
538
- ## 0.2.0 (2017-08-18)
539
-
540
- - Ensure output directory exists. ([@danielwestendorf][])
541
-
542
- **Change default output dir** to "tmp/test_prof".
543
-
544
- Rename `#artefact_path` to `#artifact_path` to be more US-like
545
-
546
- Ensure output dir exists in `#artifact_path` method.
547
-
548
- - FactoryDoctor: print success message when no bad examples found. ([@palkan][])
549
-
550
- ## 0.1.1 (2017-08-17)
551
-
552
- - AnyFixture: clean tables in reverse order to not fail when foreign keys exist. ([@marshall-lee][])
553
-
554
- ## 0.1.0 (2017-08-15)
555
-
556
- - Initial version. ([@palkan][])
166
+ See [changelog](https://github.com/test-prof/test-prof/blob/v0.8.0/CHANGELOG.md) for versions <0.9.0.
557
167
 
558
168
  [@palkan]: https://github.com/palkan
559
169
  [@marshall-lee]: https://github.com/marshall-lee
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  [![Cult Of Martians](http://cultofmartians.com/assets/badges/badge.svg)](https://cultofmartians.com)
2
- [![Gem Version](https://badge.fury.io/rb/test-prof.svg)](https://rubygems.org/gems/test-prof) [![Build](https://github.com/palkan/test-prof/workflows/Build/badge.svg)](https://github.com/palkan/test-prof/actions)
3
- [![JRuby Build](https://github.com/palkan/test-prof/workflows/JRuby%20Build/badge.svg)](https://github.com/palkan/test-prof/actions)
4
- [![Code Triagers Badge](https://www.codetriage.com/palkan/test-prof/badges/users.svg)](https://www.codetriage.com/palkan/test-prof)
2
+ [![Gem Version](https://badge.fury.io/rb/test-prof.svg)](https://rubygems.org/gems/test-prof) [![Build](https://github.com/test-prof/test-prof/workflows/Build/badge.svg)](https://github.com/test-prof/test-prof/actions)
3
+ [![JRuby Build](https://github.com/test-prof/test-prof/workflows/JRuby%20Build/badge.svg)](https://github.com/test-prof/test-prof/actions)
4
+ [![Code Triagers Badge](https://www.codetriage.com/test-prof/test-prof/badges/users.svg)](https://www.codetriage.com/test-prof/test-prof)
5
5
  [![Documentation](https://img.shields.io/badge/docs-link-brightgreen.svg)](https://test-prof.evilmartians.io)
6
6
 
7
7
  # Ruby Tests Profiling Toolbox
@@ -51,7 +51,7 @@ TestProf toolbox aims to help you identify bottlenecks in your test suite. It co
51
51
  - [CodeTriage](https://github.com/codetriage/codetriage)
52
52
  - [Dev.to](https://github.com/thepracticaldev/dev.to)
53
53
  - [Open Project](https://github.com/opf/openproject)
54
- - [...and others](https://github.com/palkan/test-prof/issues/73)
54
+ - [...and others](https://github.com/test-prof/test-prof/issues/73)
55
55
 
56
56
  ## Resources
57
57
 
@@ -83,7 +83,7 @@ And that's it)
83
83
 
84
84
  Supported Ruby versions:
85
85
 
86
- - Ruby (MRI) >= 2.4.0 (**NOTE:** for Ruby 2.2 use TestProf < 0.7.0 or Ruby 2.3 use TestProf ~> 0.7.0)
86
+ - Ruby (MRI) >= 2.5.0 (**NOTE:** for Ruby 2.2 use TestProf < 0.7.0, Ruby 2.3 use TestProf ~> 0.7.0, Ruby 2.4 use TestProf <0.12.0)
87
87
 
88
88
  - JRuby >= 9.1.0.0 (**NOTE:** refinements-dependent features might require 9.2.7+)
89
89
 
@@ -95,9 +95,9 @@ Check out our [docs][].
95
95
 
96
96
  ## What's next?
97
97
 
98
- Have an idea? [Propose](https://github.com/palkan/test-prof/issues/new) a feature request!
98
+ Have an idea? [Propose](https://github.com/test-prof/test-prof/issues/new) a feature request!
99
99
 
100
- Already using TestProf? [Share your story!](https://github.com/palkan/test-prof/issues/73)
100
+ Already using TestProf? [Share your story!](https://github.com/test-prof/test-prof/issues/73)
101
101
 
102
102
  ## License
103
103
 
@@ -108,7 +108,7 @@ module RuboCop
108
108
  # expect(number).to be_odd
109
109
  # end
110
110
  #
111
- class AggregateExamples < Cop
111
+ class AggregateExamples < ::RuboCop::Cop::Cop
112
112
  include LineRangeHelpers
113
113
  include MetadataHelpers
114
114
  include NodeMatchers
@@ -3,7 +3,7 @@
3
3
  module RuboCop
4
4
  module Cop
5
5
  module RSpec
6
- class AggregateExamples < Cop
6
+ class AggregateExamples < ::RuboCop::Cop::Cop
7
7
  # @example `its`
8
8
  #
9
9
  # # Supports regular `its` call with an attribute/method name,
@@ -3,7 +3,7 @@
3
3
  module RuboCop
4
4
  module Cop
5
5
  module RSpec
6
- class AggregateExamples < Cop
6
+ class AggregateExamples < ::RuboCop::Cop::Cop
7
7
  # @internal Support methods for keeping newlines around examples.
8
8
  module LineRangeHelpers
9
9
  include RangeHelp
@@ -5,7 +5,7 @@ require_relative "../language"
5
5
  module RuboCop
6
6
  module Cop
7
7
  module RSpec
8
- class AggregateExamples < Cop
8
+ class AggregateExamples < ::RuboCop::Cop::Cop
9
9
  # When aggregated, the expectations will fail when not supposed to or
10
10
  # have a risk of not failing when expected to. One example is
11
11
  # `validate_presence_of :comment` as it leaves an empty comment after
@@ -3,7 +3,7 @@
3
3
  module RuboCop
4
4
  module Cop
5
5
  module RSpec
6
- class AggregateExamples < Cop
6
+ class AggregateExamples < ::RuboCop::Cop::Cop
7
7
  # @internal
8
8
  # Support methods for example metadata.
9
9
  # Examples with similar metadata are grouped.
@@ -5,7 +5,7 @@ require_relative "../language"
5
5
  module RuboCop
6
6
  module Cop
7
7
  module RSpec
8
- class AggregateExamples < Cop
8
+ class AggregateExamples < ::RuboCop::Cop::Cop
9
9
  # @internal
10
10
  # Node matchers and searchers.
11
11
  module NodeMatchers
@@ -5,8 +5,8 @@ module TestProf
5
5
  module ActiveRecord3Transactions
6
6
  refine ::ActiveRecord::ConnectionAdapters::AbstractAdapter do
7
7
  def begin_transaction(joinable: true)
8
- increment_open_transactions
9
8
  if open_transactions > 0
9
+ increment_open_transactions
10
10
  create_savepoint
11
11
  else
12
12
  begin_db_transaction
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TestProf
4
- VERSION = "0.12.0"
4
+ VERSION = "0.12.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-prof
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Dementyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-17 00:00:00.000000000 Z
11
+ date: 2020-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -208,15 +208,15 @@ files:
208
208
  - lib/test_prof/utils/rspec.rb
209
209
  - lib/test_prof/utils/sized_ordered_set.rb
210
210
  - lib/test_prof/version.rb
211
- homepage: http://github.com/palkan/test-prof
211
+ homepage: http://github.com/test-prof/test-prof
212
212
  licenses:
213
213
  - MIT
214
214
  metadata:
215
- bug_tracker_uri: http://github.com/palkan/test-prof/issues
216
- changelog_uri: https://github.com/palkan/test-prof/blob/master/CHANGELOG.md
215
+ bug_tracker_uri: http://github.com/test-prof/test-prof/issues
216
+ changelog_uri: https://github.com/test-prof/test-prof/blob/master/CHANGELOG.md
217
217
  documentation_uri: https://test-prof.evilmartians.io/
218
218
  homepage_uri: https://test-prof.evilmartians.io/
219
- source_code_uri: http://github.com/palkan/test-prof
219
+ source_code_uri: http://github.com/test-prof/test-prof
220
220
  post_install_message:
221
221
  rdoc_options: []
222
222
  require_paths: