soda 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -2890,6 +2890,7 @@ JSCode
2890
2890
  end
2891
2891
 
2892
2892
  tests.each do |test|
2893
+ next if (remBlockScript(test))
2893
2894
  test_order += 1
2894
2895
  tmp_result = {}
2895
2896
  tmp_result['result'] = run(test, false, true, suite_name)
@@ -807,6 +807,8 @@ HTML
807
807
  totals[suite]['Test Failure Count'] = 0
808
808
  totals[suite]['Test Passed Count'] = 0
809
809
  totals[suite]['Total Time'] = nil
810
+ totals[suite]['Tests Failed'] = 0
811
+ totals[suite]['Test Other Failures'] = 0
810
812
 
811
813
  suite_hash.each do |k, v|
812
814
  next if (k !~ /tests/)
@@ -815,8 +817,9 @@ HTML
815
817
  v.each do |test|
816
818
  time_set = false
817
819
  if (test['result'].to_i != 0)
818
- totals[suite]['Test Failure Count'] += 1
819
- total_failure_count += 1
820
+ totals[suite]['Tests Failed'] += 1
821
+ # totals[suite]['Test Failure Count'] += 1
822
+ # total_failure_count += 1
820
823
  else
821
824
  totals[suite]['Test Passed Count'] += 1
822
825
  end
@@ -841,7 +844,6 @@ HTML
841
844
  if (!totals[suite].key?(test_k))
842
845
  totals[suite][test_k] = 0
843
846
  else
844
- next if (test_k =~ /Test Failure Count/)
845
847
  totals[suite][test_k] += test_v.to_i if (test_k !~ /time/i)
846
848
  end
847
849
  end
@@ -866,7 +868,6 @@ HTML
866
868
  row_id = 0
867
869
  totals.keys.sort.each { |suite_name|
868
870
  suite_hash = totals[suite_name]
869
- next if (suite_name =~ /Total\sFailure\sCount/i)
870
871
  row_id += 1
871
872
  report_file = "#{suite_name}"
872
873
  hours,minutes,seconds,frac =
@@ -884,7 +885,10 @@ HTML
884
885
  seconds = "0#{seconds}"
885
886
  end
886
887
 
887
- suite_hash['Test Other Failures'] = 0
888
+ # debug
889
+ suite_hash['Test Other Failures'] =
890
+ suite_hash['Total Failure Count'].to_i()
891
+ # end debug
888
892
 
889
893
  test_run_class = "td_run_data"
890
894
  if (suite_hash['Test Assert Failures'] > 0 ||
@@ -914,14 +918,19 @@ HTML
914
918
 
915
919
  t_passedcount = suite_hash['Test Count']
916
920
  t_passedcount -= suite_hash['Test Failure Count']
921
+
917
922
  total_failures = 0
918
- # total_failures += suite_hash['Test Failure Count']
923
+ total_failures += suite_hash['Test Failure Count']
919
924
  total_failures += suite_hash['Test Exceptions']
920
925
  total_failures += suite_hash['Test WatchDog Count']
921
926
  total_failures += suite_hash['Test Assert Failures']
922
927
  total_failures += suite_hash['Test Other Failures']
923
928
  total_failures += suite_hash['Test JavaScript Error Count']
924
- # total_failure_count += total_failures
929
+ total_failure_count += total_failures
930
+
931
+ # debug #
932
+ suite_hash['Test Other Failures'] = suite_hash['Test Failure Count']
933
+ # end debug #
925
934
 
926
935
  ran_count = suite_hash['Test Count'].to_i()
927
936
  ran_count -= suite_hash['Test WatchDog Count']
@@ -943,7 +952,7 @@ HTML
943
952
  "\t<td class=\"td_passed_data\">"+
944
953
  "#{suite_hash['Test Passed Count']}</td>\n"+
945
954
  "\t<td class=\"td_failed_data\">"+
946
- "#{suite_hash['Test Failure Count']}</td>\n"+
955
+ "#{suite_hash['Tests Failed']}</td>\n"+
947
956
  "\t<td class=\"td_blocked_data\">"+
948
957
  "#{suite_hash['Test Blocked Count']}</td>\n"+
949
958
  "\t<td class=\"td_skipped_data\">"+
@@ -957,7 +966,7 @@ HTML
957
966
  "\t<td class=\"#{asserts_td}\">"+
958
967
  "#{suite_hash['Test Assert Failures']}</td>\n"+
959
968
  "\t<td class=\"td_other_data\">"+
960
- "0</td>\n"+
969
+ "#{suite_hash['Test Failure Count']}</td>\n"+
961
970
  "\t<td class=\"td_total_data\">#{total_failures}</td>\n"+
962
971
  "\t<td class=\"td_css_data\">"+
963
972
  "#{suite_hash['Test CSS Error Count']}</td>\n"+
@@ -993,7 +1002,7 @@ HTML
993
1002
  "\t<td class=\"td_footer_passed\">#{suite_totals['Test Passed Count']}"+
994
1003
  "</td>\n"+
995
1004
  "\t<td class=\"td_footer_failed\">"+
996
- "#{suite_totals['Test Failure Count']}</td>\n"+
1005
+ "#{suite_totals['Tests Failed']}</td>\n"+
997
1006
  "\t<td class=\"td_footer_blocked\">"+
998
1007
  "#{suite_totals['Test Blocked Count']}</td>\n"+
999
1008
  "\t<td class=\"td_footer_skipped\">"+
@@ -1006,7 +1015,8 @@ HTML
1006
1015
  "#{suite_totals['Test JavaScript Error Count']}</td>\n"+
1007
1016
  "\t<td class=\"td_footer_assert\">"+
1008
1017
  "#{suite_totals['Test Assert Failures']}</td>\n"+
1009
- "\t<td class=\"td_footer_other\">0</td>\n"+
1018
+ "\t<td class=\"td_footer_other\">"+
1019
+ "#{suite_totals['Test Failure Count']}</td>\n"+
1010
1020
  "\t<td class=\"td_footer_total\">"+
1011
1021
  "#{total_failure_count}</td>\n"+
1012
1022
  "\t<td class=\"td_footer_css\">"+
@@ -1,4 +1,4 @@
1
1
  require 'Soda'
2
2
 
3
- SODA_GEM_VERSION = "1.1.3"
3
+ SODA_GEM_VERSION = "1.1.4"
4
4
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soda
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 3
10
- version: 1.1.3
9
+ - 4
10
+ version: 1.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Trampus Richmond