On branch master Your branch is up-to-date with 'origin/master'. Changes not staged for commit: (use "git add ..." to update what will be committed) (use "git checkout -- ..." to discard changes in working directory) modified: index.js modified: package.json Untracked files: (use "git add ..." to include in what will be committed) TODO.txt out.diff no changes added to commit (use "git add" and/or "git commit -a") diff --git a/index.js b/index.js index 8d863da..4f1af6d 100644 --- a/index.js +++ b/index.js @@ -4,6 +4,7 @@ function FailureReporter(out) { this.out = out || process.stdout; this.total = 0; this.fail = 0; + this.pass = 0; // used by ci/index.js getExitCode } FailureReporter.prototype = { @@ -12,6 +13,8 @@ FailureReporter.prototype = { this.total++; if (!data.passed) { this.fail++; + } else { + this.pass++; } }, display: function(prefix, result) { diff --git a/package.json b/package.json index 019963f..953d3fa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "testem-failure-reporter", - "version": "1.0.1", + "version": "1.0.2", "description": "Reporter for testem that outputs only failed tests", "main": "index.js", "repository": {