Skip to content

Commit

Permalink
Merge pull request #1244 from oker1/patch-1
Browse files Browse the repository at this point in the history
xunit reporter: don't include attrs in failure tag
  • Loading branch information
travisjeffery committed Jul 11, 2014
2 parents d5d1371 + fd6f810 commit 1ea878d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/reporters/xunit.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ function test(test) {

if ('failed' == test.state) {
var err = test.err;
attrs.message = escape(err.message);
console.log(tag('testcase', attrs, false, tag('failure', attrs, false, cdata(err.stack))));
console.log(tag('testcase', attrs, false, tag('failure', {}, false, cdata(escape(err.message) + "\n" + err.stack))));
} else if (test.pending) {
console.log(tag('testcase', attrs, false, tag('skipped', {}, true)));
} else {
Expand Down

0 comments on commit 1ea878d

Please sign in to comment.