Skip to content

Commit

Permalink
feat(reporter.junit): add a 'skipped' tag for skipped testcases
Browse files Browse the repository at this point in the history
Closes #321
  • Loading branch information
ahaurw01 committed Feb 5, 2013
1 parent da85aab commit 6286406
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/reporters/JUnit.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ var JUnitReporter = function(formatError, outputFile, pkgName, emitter) {
classname: (pkgName ? pkgName + ' ' : '') + browser.name + '.' + result.suite.join(' ').replace(/\./g, '_')
});

if (result.skipped) {
spec.ele('skipped');
}

if (!result.success) {
result.log.forEach(function(err) {
spec.ele('failure', {type: ''}, formatError(err));
Expand Down

0 comments on commit 6286406

Please sign in to comment.