bucky-core 0.10.18 → 0.10.21

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: d50742f901d8276de5e234afde280ec7692be426842f815647b192f31f6b90ab
4
- data.tar.gz: e833afdea6d437f15eddade5331ac729139414c202bb86ac39c8d9f7128f557a
3
+ metadata.gz: 2f4b95e3aacb47a0ed943a1f2dc60dc5678c497a1e7939f5e5d0b49f0a2ac60d
4
+ data.tar.gz: 5f2678962c6af2dbea319ba64b21266a2b3e1154d2a1b87d0e1904abe08f6732
5
5
  SHA512:
6
- metadata.gz: 4fb55a0a3306935a41ecfde2004b3de2c1c3d8aacfdf18a62187b75296ea536af7a7bc622a224aa3cd494ebf6a4f90476dd61b6dc0e1fc83ecaef142521c5b3a
7
- data.tar.gz: 660d128ae6ab97185df4eee3478dfb76f683f1d7e0d6386d8853b42bb2d7b6bb096ba36440536414902b632215452e4688177f59e2650ce46a38b24c57eb5058
6
+ metadata.gz: c81df8720f17e09c777d8a8ceb1d548c1caecfe3c864125363f3274fc15afddebd9268d49ccf492c01290cb43f5d37e964be6372f0e90f51b35563cb989482c2
7
+ data.tar.gz: 5f74682240c9c7d338477d5d65bce7037db574aa9314b04ca1aeac1435e3b23928f1b4abb9558459994f7a2d5e5f87af178a9dc1414fb1e482674624af699c49
data/exe/bucky CHANGED
@@ -131,7 +131,6 @@ def setup_test_cond(test_cond)
131
131
  test_cond[:test_category] ||= 'e2e'
132
132
  test_cond[:re_test_count] = test_cond[:re_test_count] ? test_cond[:re_test_count].to_i : 1
133
133
  test_cond[:link_check_max_times] ||= 3
134
- test_cond[:out] ||= 'report.json'
135
134
  # Change to array e.g.--suite_id 1,2,3 -> :suite_id=>[1,2,3]
136
135
  %i[suite_name case label xlabel device].each do |k|
137
136
  test_cond[k] = test_cond[k].split(',') unless test_cond[k].nil?
@@ -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.18'
5
+ VERSION = '0.10.21'
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.18
4
+ version: 0.10.21
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