bucky-core 0.10.19 → 0.10.22

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: 71ab5650bf91e8f1fe19a0a37e82f3413f7bf936efbdcb590d10625ee1279d75
4
- data.tar.gz: 2192597051b29173480fb23af9f076c8935c8f86aec31e9902e3fdaa9d4f3b22
3
+ metadata.gz: ad26ae7d896b46091c2980ddf1abd4cb7118ff64d8ac4583211828cf9c2ba0e3
4
+ data.tar.gz: ffdca5a8bffd1c769bdbc329c434a5bb68dcf4198d2331515f667f1851c9c8ca
5
5
  SHA512:
6
- metadata.gz: 7cb4c4ce1dabca756159d99c8c04cf9c950374e5fd56df271198cd57ca3d34d7e1a9f87b3e97bfa5f5d52036decc18b09b9dd6718fcc4f82a5dc47fd3829c7ea
7
- data.tar.gz: c63ab8c48f42dbf5c4b02c6e5ca30b0d107c728bb4a0c51e975b09c0e6dd422b6238f27ffadeaa4169e8b03a866a35d159b3ba16deda96ac6d127e7ed915fcfd
6
+ metadata.gz: f5e2e78e4c64f7bfc4ad95dcc95d3fd2a359f4b829fdd723255d5fc23f4b2614f9ccb30e40e6d5d13425487e004f4456b59d86f5ce1d0d2c5a4712fb78c1ac51
7
+ data.tar.gz: c4bc515a067af476819cae7b8b8c8da9443c73ebd196ac97dbd073d1a489503beee71e4a0616cb403e3f1ece262eaa587189a8062a4c912e7f6c831c2b05e7f5
@@ -152,13 +152,13 @@ module Bucky
152
152
  end
153
153
 
154
154
  def execute_test
155
- results_set = {}
155
+ all_round_results = []
156
156
  @re_test_count.times do |i|
157
157
  Bucky::Core::TestCore::ExitHandler.instance.reset
158
158
  $round = i + 1
159
159
  @json_report[:summary][:round_count] = $round
160
160
  test_suite_data = load_test_suites
161
- results_set = do_test_suites(test_suite_data)
161
+ all_round_results.append(do_test_suites(test_suite_data))
162
162
  @test_cond[:re_test_cond] = @tdo.get_ng_test_cases_at_last_execution(
163
163
  is_error: 1, job_id: $job_id, round: $round
164
164
  )
@@ -167,11 +167,9 @@ module Bucky
167
167
 
168
168
  return unless @test_cond[:out]
169
169
 
170
- results_set.each do |_class_name, res|
171
- @json_report[:summary][:cases_count] += res['cases_count']
172
- @json_report[:summary][:success_count] += res['success_count']
173
- @json_report[:summary][:failure_count] += res['failure_count']
174
- end
170
+ @json_report[:summary][:cases_count] = all_round_results[0].sum { |_case, res| res['cases_count'] }
171
+ @json_report[:summary][:failure_count] = all_round_results[-1].sum { |_case, res| res['failure_count'] }
172
+ @json_report[:summary][:success_count] = @json_report[:summary][:cases_count] - @json_report[:summary][:failure_count]
175
173
 
176
174
  File.open(@test_cond[:out], 'w') do |f|
177
175
  f.puts(@json_report.to_json)
data/lib/bucky/version.rb CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Bucky
4
4
  module Version
5
- VERSION = '0.10.19'
5
+ VERSION = '0.10.22'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bucky-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.19
4
+ version: 0.10.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - NaotoKishino
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: exe
15
15
  cert_chain: []
16
- date: 2022-05-23 00:00:00.000000000 Z
16
+ date: 2022-06-13 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: awesome_print