knapsack_pro 5.7.0 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +2 -0
- data/CHANGELOG.md +10 -0
- data/README.md +1 -1
- data/bin/test +15 -0
- data/knapsack_pro.gemspec +5 -5
- data/lib/knapsack_pro/adapters/rspec_adapter.rb +45 -44
- data/lib/knapsack_pro/formatters/rspec_queue_summary_formatter.rb +6 -3
- data/lib/knapsack_pro/formatters/time_tracker.rb +161 -0
- data/lib/knapsack_pro/formatters/time_tracker_fetcher.rb +12 -0
- data/lib/knapsack_pro/presenter.rb +3 -2
- data/lib/knapsack_pro/report.rb +13 -9
- data/lib/knapsack_pro/runners/queue/rspec_runner.rb +25 -14
- data/lib/knapsack_pro/runners/rspec_runner.rb +19 -3
- data/lib/knapsack_pro/tracker.rb +1 -9
- data/lib/knapsack_pro/version.rb +1 -1
- data/lib/knapsack_pro.rb +0 -1
- data/spec/knapsack_pro/adapters/rspec_adapter_spec.rb +68 -158
- data/spec/knapsack_pro/formatters/time_tracker_specs.rb +453 -0
- data/spec/knapsack_pro/runners/queue/rspec_runner_spec.rb +71 -32
- data/spec/knapsack_pro/runners/rspec_runner_spec.rb +2 -5
- data/spec/knapsack_pro/tracker_spec.rb +0 -21
- metadata +9 -7
- data/lib/knapsack_pro/extensions/time.rb +0 -9
- data/spec/knapsack_pro/extensions/time_spec.rb +0 -5
@@ -177,29 +177,8 @@ describe KnapsackPro::Tracker do
|
|
177
177
|
|
178
178
|
it_behaves_like 'default trakcer attributes'
|
179
179
|
|
180
|
-
it "global time since beginning won't be reset" do
|
181
|
-
expect(tracker.global_time_since_beginning).to be >= 0.1
|
182
|
-
end
|
183
|
-
|
184
180
|
it 'resets prerun_tests_loaded to false' do
|
185
181
|
expect(tracker.prerun_tests_loaded).to be false
|
186
182
|
end
|
187
183
|
end
|
188
|
-
|
189
|
-
|
190
|
-
describe '#unexecuted_test_files' do
|
191
|
-
before do
|
192
|
-
tracker.set_prerun_tests(['a_spec.rb', 'b_spec.rb', 'c_spec.rb'])
|
193
|
-
|
194
|
-
# measure execution time for b_spec.rb
|
195
|
-
tracker.current_test_path = 'b_spec.rb'
|
196
|
-
tracker.start_timer
|
197
|
-
sleep 0.1
|
198
|
-
tracker.stop_timer
|
199
|
-
end
|
200
|
-
|
201
|
-
it 'returns test files without measured time' do
|
202
|
-
expect(tracker.unexecuted_test_files).to eq(['a_spec.rb', 'c_spec.rb'])
|
203
|
-
end
|
204
|
-
end
|
205
184
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knapsack_pro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 6.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ArturT
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -183,7 +183,7 @@ description: Run tests in parallel across CI server nodes based on tests executi
|
|
183
183
|
time. Thanks to that your CI build time is as fast as possible. It works with many
|
184
184
|
CI providers.
|
185
185
|
email:
|
186
|
-
-
|
186
|
+
- support@knapsackpro.com
|
187
187
|
executables:
|
188
188
|
- knapsack_pro
|
189
189
|
extensions: []
|
@@ -201,6 +201,7 @@ files:
|
|
201
201
|
- README.md
|
202
202
|
- Rakefile
|
203
203
|
- bin/knapsack_pro
|
204
|
+
- bin/test
|
204
205
|
- knapsack_pro.gemspec
|
205
206
|
- lib/knapsack_pro.rb
|
206
207
|
- lib/knapsack_pro/adapters/base_adapter.rb
|
@@ -239,10 +240,11 @@ files:
|
|
239
240
|
- lib/knapsack_pro/crypto/decryptor.rb
|
240
241
|
- lib/knapsack_pro/crypto/digestor.rb
|
241
242
|
- lib/knapsack_pro/crypto/encryptor.rb
|
242
|
-
- lib/knapsack_pro/extensions/time.rb
|
243
243
|
- lib/knapsack_pro/formatters/rspec_json_formatter.rb
|
244
244
|
- lib/knapsack_pro/formatters/rspec_queue_profile_formatter_extension.rb
|
245
245
|
- lib/knapsack_pro/formatters/rspec_queue_summary_formatter.rb
|
246
|
+
- lib/knapsack_pro/formatters/time_tracker.rb
|
247
|
+
- lib/knapsack_pro/formatters/time_tracker_fetcher.rb
|
246
248
|
- lib/knapsack_pro/hooks/queue.rb
|
247
249
|
- lib/knapsack_pro/logger_wrapper.rb
|
248
250
|
- lib/knapsack_pro/mask_string.rb
|
@@ -335,7 +337,7 @@ files:
|
|
335
337
|
- spec/knapsack_pro/crypto/decryptor_spec.rb
|
336
338
|
- spec/knapsack_pro/crypto/digestor_spec.rb
|
337
339
|
- spec/knapsack_pro/crypto/encryptor_spec.rb
|
338
|
-
- spec/knapsack_pro/
|
340
|
+
- spec/knapsack_pro/formatters/time_tracker_specs.rb
|
339
341
|
- spec/knapsack_pro/hooks/queue_spec.rb
|
340
342
|
- spec/knapsack_pro/logger_wrapper_spec.rb
|
341
343
|
- spec/knapsack_pro/presenter_spec.rb
|
@@ -388,7 +390,7 @@ licenses:
|
|
388
390
|
metadata:
|
389
391
|
bug_tracker_uri: https://github.com/KnapsackPro/knapsack_pro-ruby/issues
|
390
392
|
changelog_uri: https://github.com/KnapsackPro/knapsack_pro-ruby/blob/master/CHANGELOG.md
|
391
|
-
documentation_uri: https://docs.knapsackpro.com/
|
393
|
+
documentation_uri: https://docs.knapsackpro.com/knapsack_pro-ruby/guide/
|
392
394
|
homepage_uri: https://knapsackpro.com
|
393
395
|
source_code_uri: https://github.com/KnapsackPro/knapsack_pro-ruby
|
394
396
|
post_install_message:
|
@@ -455,7 +457,7 @@ test_files:
|
|
455
457
|
- spec/knapsack_pro/crypto/decryptor_spec.rb
|
456
458
|
- spec/knapsack_pro/crypto/digestor_spec.rb
|
457
459
|
- spec/knapsack_pro/crypto/encryptor_spec.rb
|
458
|
-
- spec/knapsack_pro/
|
460
|
+
- spec/knapsack_pro/formatters/time_tracker_specs.rb
|
459
461
|
- spec/knapsack_pro/hooks/queue_spec.rb
|
460
462
|
- spec/knapsack_pro/logger_wrapper_spec.rb
|
461
463
|
- spec/knapsack_pro/presenter_spec.rb
|