Skip to content

Commit

Permalink
Merge pull request #333 from ahaurw01/feature-add-junit-skipped
Browse files Browse the repository at this point in the history
feat(reporter.junit): add a 'skipped' tag for skipped testcases
  • Loading branch information
vojtajina committed Feb 7, 2013
2 parents da85aab + 6286406 commit 0fccc71
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 0fccc71

Please sign in to comment.