@@ -55,11 +55,18 @@ function dashboardResults(result, show) {
5555 table += ": " ;
5656 table += ( 0 , escape_html_1 . default ) ( testcase . description ) ;
5757 }
58- if ( testcase . details ) {
58+ if ( testcase . message || testcase . details ) {
5959 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+ }
6370 }
6471 table += "</td></tr>\n" ;
6572 count ++ ;
@@ -497,14 +504,18 @@ function parseJunitXml(xml) {
497504 const classname = testcase . $ . classname ;
498505 const name = testcase . $ . name ;
499506 const duration = testcase . $ . time ;
507+ let failure_or_error ;
508+ let message = undefined ;
500509 let details = undefined ;
501510 if ( testcase . skipped ) {
502511 status = TestStatus . Skip ;
503512 counts . skipped ++ ;
504513 }
505- else if ( testcase . failure || testcase . error ) {
514+ else if ( failure_or_error = testcase . failure || testcase . error ) {
506515 status = TestStatus . Fail ;
507- details = ( testcase . failure || testcase . error ) [ 0 ] . _ ;
516+ const element = failure_or_error [ 0 ] ;
517+ message = element . $ . message ;
518+ details = element . _ ;
508519 counts . failed ++ ;
509520 }
510521 else {
@@ -514,6 +525,7 @@ function parseJunitXml(xml) {
514525 status : status ,
515526 name : name ,
516527 description : classname ,
528+ message : message ,
517529 details : details ,
518530 duration : duration
519531 } ) ;
0 commit comments