actually count right, total tests == total expects
This commit is contained in:
parent
860da38c99
commit
57faed9d8f
@ -28,6 +28,7 @@ class jasmine.HeadlessReporter
|
|||||||
@startTime = new Date()
|
@startTime = new Date()
|
||||||
reportSpecResults: (spec) ->
|
reportSpecResults: (spec) ->
|
||||||
results = spec.results()
|
results = spec.results()
|
||||||
|
@length += results.getItems().length
|
||||||
if results.passed()
|
if results.passed()
|
||||||
JHW.specPassed()
|
JHW.specPassed()
|
||||||
else
|
else
|
||||||
@ -41,4 +42,3 @@ class jasmine.HeadlessReporter
|
|||||||
@results.push(failureResult)
|
@results.push(failureResult)
|
||||||
reportSpecStarting: (spec) ->
|
reportSpecStarting: (spec) ->
|
||||||
reportSuiteResults: (suite) ->
|
reportSuiteResults: (suite) ->
|
||||||
@length += suite.specs().length
|
|
||||||
|
@ -51,6 +51,7 @@
|
|||||||
HeadlessReporter.prototype.reportSpecResults = function(spec) {
|
HeadlessReporter.prototype.reportSpecResults = function(spec) {
|
||||||
var failureResult, result, results, _fn, _i, _len, _ref;
|
var failureResult, result, results, _fn, _i, _len, _ref;
|
||||||
results = spec.results();
|
results = spec.results();
|
||||||
|
this.length += results.getItems().length;
|
||||||
if (results.passed()) {
|
if (results.passed()) {
|
||||||
return JHW.specPassed();
|
return JHW.specPassed();
|
||||||
} else {
|
} else {
|
||||||
@ -71,9 +72,7 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
HeadlessReporter.prototype.reportSpecStarting = function(spec) {};
|
HeadlessReporter.prototype.reportSpecStarting = function(spec) {};
|
||||||
HeadlessReporter.prototype.reportSuiteResults = function(suite) {
|
HeadlessReporter.prototype.reportSuiteResults = function(suite) {};
|
||||||
return this.length += suite.specs().length;
|
|
||||||
};
|
|
||||||
return HeadlessReporter;
|
return HeadlessReporter;
|
||||||
})();
|
})();
|
||||||
}).call(this);
|
}).call(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user