Skip to content

Commit

Permalink
Wrap agentError messages in a testcase tag. yuiGH-50.
Browse files Browse the repository at this point in the history
  • Loading branch information
reid committed Jun 1, 2013
1 parent d187c1c commit 9433af9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/cli/reporter/junit.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ JUnitReporter.prototype.handleAgentScriptError = function (agent, details) {
JUnitReporter.prototype.handleAgentError = function (agent, details) {
this.hasFailures = true;
this.puts('<testsuite name="%s" failures="1" total="1">', agent);
this.puts('<testcase name="Unable to run test" time="0">');
this.puts('<failure message="%s"/>', details.message);
this.puts('</testcase>');
this.puts('</testsuite>');
};

Expand Down

0 comments on commit 9433af9

Please sign in to comment.