dubious tests now raise an AssertionError
Showing
1 changed file
with
6 additions
and
1 deletions
... | @@ -894,7 +894,12 @@ Tester.prototype.done = function done(planned) { | ... | @@ -894,7 +894,12 @@ Tester.prototype.done = function done(planned) { |
894 | */ | 894 | */ |
895 | Tester.prototype.dubious = function dubious(planned, executed, suite) { | 895 | Tester.prototype.dubious = function dubious(planned, executed, suite) { |
896 | "use strict"; | 896 | "use strict"; |
897 | this.casper.warn(f('%s: %d tests planned, %d tests executed', suite || 'global', planned, executed)); | 897 | var message = f('%s: %d tests planned, %d tests executed', suite || 'global', planned, executed); |
898 | this.casper.warn(message); | ||
899 | return this.assert(false, message, { | ||
900 | type: "dubious", | ||
901 | standard: message | ||
902 | }); | ||
898 | }; | 903 | }; |
899 | 904 | ||
900 | /** | 905 | /** | ... | ... |
-
Please register or sign in to post a comment