@@ -55,11 +55,18 @@ function dashboardResults(result, show) {
55
55
table += ": " ;
56
56
table += ( 0 , escape_html_1 . default ) ( testcase . description ) ;
57
57
}
58
- if ( testcase . details ) {
58
+ if ( testcase . message || testcase . details ) {
59
59
table += "<br/>\n" ;
60
- table += "<pre><code>" ;
61
- table += ( 0 , escape_html_1 . default ) ( testcase . details ) ;
62
- table += "</code></pre>" ;
60
+ if ( testcase . message ) {
61
+ table += "<pre><code>" ;
62
+ table += ( 0 , escape_html_1 . default ) ( testcase . message ) ;
63
+ table += "</code></pre>" ;
64
+ }
65
+ if ( testcase . details ) {
66
+ table += "<pre><code>" ;
67
+ table += ( 0 , escape_html_1 . default ) ( testcase . details ) ;
68
+ table += "</code></pre>" ;
69
+ }
63
70
}
64
71
table += "</td></tr>\n" ;
65
72
count ++ ;
@@ -497,14 +504,18 @@ function parseJunitXml(xml) {
497
504
const classname = testcase . $ . classname ;
498
505
const name = testcase . $ . name ;
499
506
const duration = testcase . $ . time ;
507
+ let failure_or_error ;
508
+ let message = undefined ;
500
509
let details = undefined ;
501
510
if ( testcase . skipped ) {
502
511
status = TestStatus . Skip ;
503
512
counts . skipped ++ ;
504
513
}
505
- else if ( testcase . failure || testcase . error ) {
514
+ else if ( failure_or_error = testcase . failure || testcase . error ) {
506
515
status = TestStatus . Fail ;
507
- details = ( testcase . failure || testcase . error ) [ 0 ] . _ ;
516
+ const element = failure_or_error [ 0 ] ;
517
+ message = element . $ . message ;
518
+ details = element . _ ;
508
519
counts . failed ++ ;
509
520
}
510
521
else {
@@ -514,6 +525,7 @@ function parseJunitXml(xml) {
514
525
status : status ,
515
526
name : name ,
516
527
description : classname ,
528
+ message : message ,
517
529
details : details ,
518
530
duration : duration
519
531
} ) ;
0 commit comments