dubious assert results now have a dedicated style
Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -952,7 +952,7 @@ Tester.prototype.processAssertionResult = function processAssertionResult(result | ... | @@ -952,7 +952,7 @@ Tester.prototype.processAssertionResult = function processAssertionResult(result |
952 | file: this.currentTestFile | 952 | file: this.currentTestFile |
953 | }); | 953 | }); |
954 | } | 954 | } |
955 | var eventName= 'success', | 955 | var eventName = 'success', |
956 | message = result.message || result.standard, | 956 | message = result.message || result.standard, |
957 | style = 'INFO', | 957 | style = 'INFO', |
958 | status = this.options.passText; | 958 | status = this.options.passText; |
... | @@ -961,6 +961,7 @@ Tester.prototype.processAssertionResult = function processAssertionResult(result | ... | @@ -961,6 +961,7 @@ Tester.prototype.processAssertionResult = function processAssertionResult(result |
961 | style = 'RED_BAR'; | 961 | style = 'RED_BAR'; |
962 | status = this.options.failText; | 962 | status = this.options.failText; |
963 | } | 963 | } |
964 | style = result.type === "dubious" ? "WARN_BAR" : style; | ||
964 | this.casper.echo([this.colorize(status, style), this.formatMessage(message)].join(' ')); | 965 | this.casper.echo([this.colorize(status, style), this.formatMessage(message)].join(' ')); |
965 | this.emit(eventName, result); | 966 | this.emit(eventName, result); |
966 | if (this.options.failFast && !result.success) { | 967 | if (this.options.failFast && !result.success) { | ... | ... |
-
Please register or sign in to post a comment