* Adds a test error and logs it if running locally (not as part of CI). * * @param {!Array<!TestErrorDef>} testErrors array of testError objects. * @param {string} name full name of the test. * @param {string} message extra information about the failure. * @param {Error} error error object with
(testErrors, name, message, error, consoleMessages)
| 208 | * messages printed so far. |
| 209 | */ |
| 210 | function addTestError(testErrors, name, message, error, consoleMessages) { |
| 211 | const testError = {name, message, error, consoleMessages}; |
| 212 | if (!isCiBuild()) { |
| 213 | logTestError(testError); |
| 214 | } |
| 215 | testErrors.push(testError); |
| 216 | } |
| 217 | |
| 218 | /** |
| 219 | * Logs a test error (regardless of where it's running). |
no test coverage detected