diff --git a/index.js b/index.js index f0fe47f..e1982c5 100644 --- a/index.js +++ b/index.js @@ -514,7 +514,7 @@ function parseJunitXml(xml) { else if (failure_or_error = testcase.failure || testcase.error) { status = TestStatus.Fail; const element = failure_or_error[0]; - message = element.$.message; + message = element.$ ? element.$.message : undefined; details = element._; counts.failed++; }