soda 1.1.4 → 1.1.15
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/SodaSuiteSummary.rb +89 -55
- data/lib/sodainfo.rb +1 -1
- metadata +3 -3
data/lib/SodaSuiteSummary.rb
CHANGED
@@ -269,7 +269,7 @@ body {
|
|
269
269
|
}
|
270
270
|
|
271
271
|
.td_header_master {
|
272
|
-
|
272
|
+
white-space: nowrap;
|
273
273
|
background: #99CCFF;
|
274
274
|
text-align: center;
|
275
275
|
font-family: Arial;
|
@@ -281,7 +281,7 @@ body {
|
|
281
281
|
}
|
282
282
|
|
283
283
|
.td_header_sub {
|
284
|
-
|
284
|
+
white-space: nowrap;
|
285
285
|
background: #99CCFF;
|
286
286
|
text-align: center;
|
287
287
|
font-family: Arial;
|
@@ -293,7 +293,7 @@ body {
|
|
293
293
|
}
|
294
294
|
|
295
295
|
.td_header_skipped {
|
296
|
-
|
296
|
+
white-space: nowrap;
|
297
297
|
background: #99CCFF;
|
298
298
|
text-align: center;
|
299
299
|
font-family: Arial;
|
@@ -305,7 +305,7 @@ body {
|
|
305
305
|
}
|
306
306
|
|
307
307
|
.td_header_watchdog {
|
308
|
-
|
308
|
+
white-space: nowrap;
|
309
309
|
background: #99CCFF;
|
310
310
|
text-align: center;
|
311
311
|
font-family: Arial;
|
@@ -325,7 +325,7 @@ table {
|
|
325
325
|
}
|
326
326
|
|
327
327
|
.td_file_data {
|
328
|
-
|
328
|
+
white-space: nowrap;
|
329
329
|
text-align: left;
|
330
330
|
font-family: Arial;
|
331
331
|
font-weight: bold;
|
@@ -336,7 +336,7 @@ table {
|
|
336
336
|
}
|
337
337
|
|
338
338
|
.td_run_data {
|
339
|
-
|
339
|
+
white-space: nowrap;
|
340
340
|
text-align: center;
|
341
341
|
font-family: Arial;
|
342
342
|
font-weight: bold;
|
@@ -347,7 +347,7 @@ table {
|
|
347
347
|
}
|
348
348
|
|
349
349
|
.td_run_data_error {
|
350
|
-
|
350
|
+
white-space: nowrap;
|
351
351
|
text-align: center;
|
352
352
|
font-family: Arial;
|
353
353
|
font-weight: bold;
|
@@ -359,7 +359,7 @@ table {
|
|
359
359
|
}
|
360
360
|
|
361
361
|
.td_passed_data {
|
362
|
-
|
362
|
+
white-space: nowrap;
|
363
363
|
text-align: center;
|
364
364
|
font-family: Arial;
|
365
365
|
font-weight: bold;
|
@@ -371,7 +371,7 @@ table {
|
|
371
371
|
}
|
372
372
|
|
373
373
|
.td_failed_data {
|
374
|
-
|
374
|
+
white-space: nowrap;
|
375
375
|
text-align: center;
|
376
376
|
font-family: Arial;
|
377
377
|
font-weight: bold;
|
@@ -383,7 +383,7 @@ table {
|
|
383
383
|
}
|
384
384
|
|
385
385
|
.td_blocked_data {
|
386
|
-
|
386
|
+
white-space: nowrap;
|
387
387
|
text-align: center;
|
388
388
|
font-family: Arial;
|
389
389
|
font-weight: bold;
|
@@ -395,7 +395,7 @@ table {
|
|
395
395
|
}
|
396
396
|
|
397
397
|
.td_skipped_data {
|
398
|
-
|
398
|
+
white-space: nowrap;
|
399
399
|
text-align: center;
|
400
400
|
font-family: Arial;
|
401
401
|
font-weight: bold;
|
@@ -407,7 +407,7 @@ table {
|
|
407
407
|
}
|
408
408
|
|
409
409
|
.td_watchdog_data {
|
410
|
-
|
410
|
+
white-space: nowrap;
|
411
411
|
text-align: center;
|
412
412
|
font-family: Arial;
|
413
413
|
font-weight: normal;
|
@@ -418,7 +418,7 @@ table {
|
|
418
418
|
}
|
419
419
|
|
420
420
|
.td_watchdog_error_data {
|
421
|
-
|
421
|
+
white-space: nowrap;
|
422
422
|
color: #FF0000;
|
423
423
|
text-align: center;
|
424
424
|
font-family: Arial;
|
@@ -430,7 +430,7 @@ table {
|
|
430
430
|
}
|
431
431
|
|
432
432
|
.td_exceptions_data {
|
433
|
-
|
433
|
+
white-space: nowrap;
|
434
434
|
text-align: center;
|
435
435
|
font-family: Arial;
|
436
436
|
font-weight: normal;
|
@@ -441,7 +441,7 @@ table {
|
|
441
441
|
}
|
442
442
|
|
443
443
|
.td_exceptions_error_data {
|
444
|
-
|
444
|
+
white-space: nowrap;
|
445
445
|
text-align: center;
|
446
446
|
font-family: Arial;
|
447
447
|
font-weight: bold;
|
@@ -453,7 +453,7 @@ table {
|
|
453
453
|
}
|
454
454
|
|
455
455
|
.td_javascript_data {
|
456
|
-
|
456
|
+
white-space: nowrap;
|
457
457
|
text-align: center;
|
458
458
|
font-family: Arial;
|
459
459
|
font-weight: normal;
|
@@ -464,7 +464,7 @@ table {
|
|
464
464
|
}
|
465
465
|
|
466
466
|
.td_javascript_error_data {
|
467
|
-
|
467
|
+
white-space: nowrap;
|
468
468
|
text-align: center;
|
469
469
|
font-family: Arial;
|
470
470
|
font-weight: bold;
|
@@ -476,7 +476,7 @@ table {
|
|
476
476
|
}
|
477
477
|
|
478
478
|
.td_assert_data {
|
479
|
-
|
479
|
+
white-space: nowrap;
|
480
480
|
text-align: center;
|
481
481
|
font-family: Arial;
|
482
482
|
font-weight: normal;
|
@@ -487,7 +487,7 @@ table {
|
|
487
487
|
}
|
488
488
|
|
489
489
|
.td_assert_error_data {
|
490
|
-
|
490
|
+
white-space: nowrap;
|
491
491
|
text-align: center;
|
492
492
|
font-family: Arial;
|
493
493
|
font-weight: bold;
|
@@ -499,7 +499,7 @@ table {
|
|
499
499
|
}
|
500
500
|
|
501
501
|
.td_other_data {
|
502
|
-
|
502
|
+
white-space: nowrap;
|
503
503
|
text-align: center;
|
504
504
|
font-family: Arial;
|
505
505
|
font-weight: normal;
|
@@ -510,7 +510,18 @@ table {
|
|
510
510
|
}
|
511
511
|
|
512
512
|
.td_other_error_data {
|
513
|
-
|
513
|
+
white-space: nowrap;
|
514
|
+
text-align: center;
|
515
|
+
font-family: Arial;
|
516
|
+
font-weight: normal;
|
517
|
+
font-size: 12px;
|
518
|
+
border-left: 0px solid black;
|
519
|
+
border-right: 0px solid black;
|
520
|
+
border-bottom: 0px solid black;
|
521
|
+
color: #FF0000;
|
522
|
+
}
|
523
|
+
.td_other_error_data {
|
524
|
+
white-space: nowrap;
|
514
525
|
text-align: center;
|
515
526
|
font-family: Arial;
|
516
527
|
font-weight: bold;
|
@@ -522,7 +533,7 @@ table {
|
|
522
533
|
}
|
523
534
|
|
524
535
|
.td_total_data {
|
525
|
-
|
536
|
+
white-space: nowrap;
|
526
537
|
text-align: center;
|
527
538
|
font-family: Arial;
|
528
539
|
font-weight: normal;
|
@@ -533,7 +544,7 @@ table {
|
|
533
544
|
}
|
534
545
|
|
535
546
|
.td_total_error_data {
|
536
|
-
|
547
|
+
white-space: nowrap;
|
537
548
|
text-align: center;
|
538
549
|
font-family: Arial;
|
539
550
|
font-weight: bold;
|
@@ -545,7 +556,7 @@ table {
|
|
545
556
|
}
|
546
557
|
|
547
558
|
.td_css_data {
|
548
|
-
|
559
|
+
white-space: nowrap;
|
549
560
|
text-align: center;
|
550
561
|
font-family: Arial;
|
551
562
|
font-weight: normal;
|
@@ -556,7 +567,7 @@ table {
|
|
556
567
|
}
|
557
568
|
|
558
569
|
.td_sodawarnings_data {
|
559
|
-
|
570
|
+
white-space: nowrap;
|
560
571
|
text-align: center;
|
561
572
|
font-family: Arial;
|
562
573
|
font-weight: normal;
|
@@ -567,7 +578,7 @@ table {
|
|
567
578
|
}
|
568
579
|
|
569
580
|
.td_time_data {
|
570
|
-
|
581
|
+
white-space: nowrap;
|
571
582
|
text-align: center;
|
572
583
|
font-family: Arial;
|
573
584
|
font-weight: normal;
|
@@ -578,7 +589,7 @@ table {
|
|
578
589
|
}
|
579
590
|
|
580
591
|
.td_footer_run {
|
581
|
-
|
592
|
+
white-space: nowrap;
|
582
593
|
background: #99CCFF;
|
583
594
|
text-align: center;
|
584
595
|
font-family: Arial;
|
@@ -592,7 +603,7 @@ table {
|
|
592
603
|
}
|
593
604
|
|
594
605
|
.td_footer_passed {
|
595
|
-
|
606
|
+
white-space: nowrap;
|
596
607
|
background: #99CCFF;
|
597
608
|
text-align: center;
|
598
609
|
font-family: Arial;
|
@@ -606,7 +617,7 @@ table {
|
|
606
617
|
}
|
607
618
|
|
608
619
|
.td_footer_failed {
|
609
|
-
|
620
|
+
white-space: nowrap;
|
610
621
|
background: #99CCFF;
|
611
622
|
text-align: center;
|
612
623
|
font-family: Arial;
|
@@ -620,7 +631,7 @@ table {
|
|
620
631
|
}
|
621
632
|
|
622
633
|
.td_footer_blocked {
|
623
|
-
|
634
|
+
white-space: nowrap;
|
624
635
|
background: #99CCFF;
|
625
636
|
text-align: center;
|
626
637
|
font-family: Arial;
|
@@ -634,7 +645,7 @@ table {
|
|
634
645
|
}
|
635
646
|
|
636
647
|
.td_footer_skipped {
|
637
|
-
|
648
|
+
white-space: nowrap;
|
638
649
|
background: #99CCFF;
|
639
650
|
text-align: center;
|
640
651
|
font-family: Arial;
|
@@ -648,7 +659,7 @@ table {
|
|
648
659
|
}
|
649
660
|
|
650
661
|
.td_footer_watchdog {
|
651
|
-
|
662
|
+
white-space: nowrap;
|
652
663
|
background: #99CCFF;
|
653
664
|
text-align: center;
|
654
665
|
font-family: Arial;
|
@@ -662,7 +673,7 @@ table {
|
|
662
673
|
}
|
663
674
|
|
664
675
|
.td_footer_exceptions {
|
665
|
-
|
676
|
+
white-space: nowrap;
|
666
677
|
background: #99CCFF;
|
667
678
|
text-align: center;
|
668
679
|
font-family: Arial;
|
@@ -676,7 +687,7 @@ table {
|
|
676
687
|
}
|
677
688
|
|
678
689
|
.td_footer_javascript {
|
679
|
-
|
690
|
+
white-space: nowrap;
|
680
691
|
background: #99CCFF;
|
681
692
|
text-align: center;
|
682
693
|
font-family: Arial;
|
@@ -690,7 +701,7 @@ table {
|
|
690
701
|
}
|
691
702
|
|
692
703
|
.td_footer_assert {
|
693
|
-
|
704
|
+
white-space: nowrap;
|
694
705
|
background: #99CCFF;
|
695
706
|
text-align: center;
|
696
707
|
font-family: Arial;
|
@@ -704,7 +715,7 @@ table {
|
|
704
715
|
}
|
705
716
|
|
706
717
|
.td_footer_other {
|
707
|
-
|
718
|
+
white-space: nowrap;
|
708
719
|
background: #99CCFF;
|
709
720
|
text-align: center;
|
710
721
|
font-family: Arial;
|
@@ -718,7 +729,7 @@ table {
|
|
718
729
|
}
|
719
730
|
|
720
731
|
.td_footer_total {
|
721
|
-
|
732
|
+
white-space: nowrap;
|
722
733
|
background: #99CCFF;
|
723
734
|
text-align: center;
|
724
735
|
font-family: Arial;
|
@@ -732,7 +743,7 @@ table {
|
|
732
743
|
}
|
733
744
|
|
734
745
|
.td_footer_css {
|
735
|
-
|
746
|
+
white-space: nowrap;
|
736
747
|
background: #99CCFF;
|
737
748
|
text-align: center;
|
738
749
|
font-family: Arial;
|
@@ -746,7 +757,7 @@ table {
|
|
746
757
|
}
|
747
758
|
|
748
759
|
.td_footer_sodawarnings {
|
749
|
-
|
760
|
+
white-space: nowrap;
|
750
761
|
background: #99CCFF;
|
751
762
|
text-align: center;
|
752
763
|
font-family: Arial;
|
@@ -760,7 +771,7 @@ table {
|
|
760
771
|
}
|
761
772
|
|
762
773
|
.td_footer_times {
|
763
|
-
|
774
|
+
white-space: nowrap;
|
764
775
|
background: #99CCFF;
|
765
776
|
text-align: center;
|
766
777
|
font-family: Arial;
|
@@ -809,21 +820,24 @@ HTML
|
|
809
820
|
totals[suite]['Total Time'] = nil
|
810
821
|
totals[suite]['Tests Failed'] = 0
|
811
822
|
totals[suite]['Test Other Failures'] = 0
|
823
|
+
totals[suite]['Lib File Count'] = 0
|
812
824
|
|
813
825
|
suite_hash.each do |k, v|
|
814
826
|
next if (k !~ /tests/)
|
815
|
-
totals[suite]['Test Count'] = v.length()
|
827
|
+
totals[suite]['Test Count'] = v.length()
|
816
828
|
|
817
829
|
v.each do |test|
|
818
830
|
time_set = false
|
819
831
|
if (test['result'].to_i != 0)
|
820
832
|
totals[suite]['Tests Failed'] += 1
|
821
|
-
# totals[suite]['Test Failure Count'] += 1
|
822
|
-
# total_failure_count += 1
|
823
833
|
else
|
824
834
|
totals[suite]['Test Passed Count'] += 1
|
825
835
|
end
|
826
836
|
|
837
|
+
if (test['testfile'] =~ /lib/i)
|
838
|
+
totals[suite]['Lib File Count'] += 1
|
839
|
+
end
|
840
|
+
|
827
841
|
if (!time_set)
|
828
842
|
time_set = true
|
829
843
|
stop = test['Test Stop Time']
|
@@ -842,15 +856,17 @@ HTML
|
|
842
856
|
|
843
857
|
test.each do |test_k, test_v|
|
844
858
|
if (!totals[suite].key?(test_k))
|
845
|
-
totals[suite][test_k] = 0
|
859
|
+
totals[suite][test_k] = 0
|
846
860
|
else
|
847
|
-
|
861
|
+
if (test['testfile'] !~ /lib/i)
|
862
|
+
totals[suite][test_k] += test_v.to_i if (test_k !~ /time/i)
|
863
|
+
end
|
848
864
|
end
|
849
865
|
end
|
850
866
|
end
|
851
867
|
end
|
852
868
|
end
|
853
|
-
|
869
|
+
|
854
870
|
totals.each do |suite, suite_hash|
|
855
871
|
suite_hash.each do |k, v|
|
856
872
|
if (!suite_totals.key?(k))
|
@@ -891,6 +907,9 @@ HTML
|
|
891
907
|
# end debug
|
892
908
|
|
893
909
|
test_run_class = "td_run_data"
|
910
|
+
if (suite_hash['Test Assert Failures'] == nil)
|
911
|
+
suite_hash['Test Assert Failures'] = 0
|
912
|
+
end
|
894
913
|
if (suite_hash['Test Assert Failures'] > 0 ||
|
895
914
|
suite_hash['Test Exceptions'] > 0)
|
896
915
|
test_run_class = "td_run_data_error"
|
@@ -916,6 +935,11 @@ HTML
|
|
916
935
|
jscript_td = "td_javascript_error_data"
|
917
936
|
end
|
918
937
|
|
938
|
+
other_td = "td_other_data"
|
939
|
+
if (suite_hash['Test Failure Count'] > 0)
|
940
|
+
other_td = "td_other_error_data"
|
941
|
+
end
|
942
|
+
|
919
943
|
t_passedcount = suite_hash['Test Count']
|
920
944
|
t_passedcount -= suite_hash['Test Failure Count']
|
921
945
|
|
@@ -935,9 +959,17 @@ HTML
|
|
935
959
|
ran_count = suite_hash['Test Count'].to_i()
|
936
960
|
ran_count -= suite_hash['Test WatchDog Count']
|
937
961
|
ran_count -= suite_hash['Test Blocked Count']
|
962
|
+
ran_count -= suite_hash['Lib File Count']
|
938
963
|
|
939
964
|
total_non_ran_count += suite_hash['Test WatchDog Count']
|
940
965
|
total_non_ran_count += suite_hash['Test Blocked Count']
|
966
|
+
total_non_lib_count = suite_hash['Test Count']
|
967
|
+
total_non_lib_count -= suite_hash['Lib File Count']
|
968
|
+
|
969
|
+
total_failures_td = "td_total_data"
|
970
|
+
if (total_failures > 0)
|
971
|
+
total_failures_td = "td_total_error_data"
|
972
|
+
end
|
941
973
|
|
942
974
|
reportdir = File.dirname(reportfile)
|
943
975
|
suite_mini_file = GenSuiteMiniSummary(data[suite_name], reportdir)
|
@@ -948,7 +980,7 @@ HTML
|
|
948
980
|
"\t<td class=\"td_file_data\"><a href=\"#{suite_mini_file}\">"+
|
949
981
|
"#{suite_name}</a></td>\n"+
|
950
982
|
"\t<td class=\"#{test_run_class}\">"+
|
951
|
-
"#{ran_count}/#{
|
983
|
+
"#{ran_count}/#{total_non_lib_count}</td>\n"+
|
952
984
|
"\t<td class=\"td_passed_data\">"+
|
953
985
|
"#{suite_hash['Test Passed Count']}</td>\n"+
|
954
986
|
"\t<td class=\"td_failed_data\">"+
|
@@ -965,9 +997,9 @@ HTML
|
|
965
997
|
"#{suite_hash['Test JavaScript Error Count']}</td>\n"+
|
966
998
|
"\t<td class=\"#{asserts_td}\">"+
|
967
999
|
"#{suite_hash['Test Assert Failures']}</td>\n"+
|
968
|
-
"\t<td class=\"
|
1000
|
+
"\t<td class=\"#{other_td}\">"+
|
969
1001
|
"#{suite_hash['Test Failure Count']}</td>\n"+
|
970
|
-
"\t<td class=\"
|
1002
|
+
"\t<td class=\"#{total_failures_td}\">#{total_failures}</td>\n"+
|
971
1003
|
"\t<td class=\"td_css_data\">"+
|
972
1004
|
"#{suite_hash['Test CSS Error Count']}</td>\n"+
|
973
1005
|
"\t<td class=\"td_sodawarnings_data\">"+
|
@@ -1054,7 +1086,7 @@ table {
|
|
1054
1086
|
background: #FFFFFF;
|
1055
1087
|
}
|
1056
1088
|
.td_header_master {
|
1057
|
-
|
1089
|
+
white-space: nowrap;
|
1058
1090
|
background: #99CCFF;
|
1059
1091
|
text-align: center;
|
1060
1092
|
font-family: Arial;
|
@@ -1065,7 +1097,7 @@ table {
|
|
1065
1097
|
border-bottom: 2px solid black;
|
1066
1098
|
}
|
1067
1099
|
.td_file_data {
|
1068
|
-
|
1100
|
+
white-space: nowrap;
|
1069
1101
|
text-align: left;
|
1070
1102
|
font-family: Arial;
|
1071
1103
|
font-weight: bold;
|
@@ -1075,7 +1107,7 @@ table {
|
|
1075
1107
|
border-bottom: 2px solid black;
|
1076
1108
|
}
|
1077
1109
|
.td_passed_data {
|
1078
|
-
|
1110
|
+
white-space: nowrap;
|
1079
1111
|
text-align: center;
|
1080
1112
|
font-family: Arial;
|
1081
1113
|
font-weight: bold;
|
@@ -1086,7 +1118,7 @@ table {
|
|
1086
1118
|
border-bottom: 2px solid black;
|
1087
1119
|
}
|
1088
1120
|
.td_failed_data {
|
1089
|
-
|
1121
|
+
white-space: nowrap;
|
1090
1122
|
text-align: center;
|
1091
1123
|
font-family: Arial;
|
1092
1124
|
font-weight: bold;
|
@@ -1097,7 +1129,7 @@ table {
|
|
1097
1129
|
border-bottom: 2px solid black;
|
1098
1130
|
}
|
1099
1131
|
.td_report_data {
|
1100
|
-
|
1132
|
+
white-space: nowrap;
|
1101
1133
|
text-align: center;
|
1102
1134
|
font-family: Arial;
|
1103
1135
|
font-weight: normal;
|
@@ -1116,11 +1148,12 @@ table {
|
|
1116
1148
|
<body>
|
1117
1149
|
<table id="tests">
|
1118
1150
|
<tr id="header">
|
1119
|
-
<td class="td_header_master" colspan="
|
1151
|
+
<td class="td_header_master" colspan="4">
|
1120
1152
|
Suite: #{suite_hash['suitefile']} Test Results
|
1121
1153
|
</td>
|
1122
1154
|
</tr>
|
1123
1155
|
<tr id="header_key">
|
1156
|
+
<td class="td_header_master"></td>
|
1124
1157
|
<td class="td_header_master">Test File</td>
|
1125
1158
|
<td class="td_header_master">Status</td>
|
1126
1159
|
<td class="td_header_master">Report Log</td>
|
@@ -1141,6 +1174,7 @@ HTML
|
|
1141
1174
|
test_report = "Report-#{test_report}.html"
|
1142
1175
|
|
1143
1176
|
str = "<tr id=\"#{id}\" #{tr_css} >\n"+
|
1177
|
+
"\t<td class=\"td_file_data\">#{id}</td>\n"+
|
1144
1178
|
"\t<td class=\"td_file_data\">#{test['testfile']}</td>\n"
|
1145
1179
|
|
1146
1180
|
if (test['result'].to_i != 0)
|
data/lib/sodainfo.rb
CHANGED
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:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 15
|
10
|
+
version: 1.1.15
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Trampus Richmond
|