Skip to content

Commit

Permalink
fix: hide statusOutput if empty in handleRunnerCompletion (#2624)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak committed Jan 18, 2024
1 parent 9fb1f8a commit b82c490
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/wpt/runner/runner.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -301,13 +301,16 @@ export class WPTRunner extends EventEmitter {
* Called after every test has completed.
*/
handleRunnerCompletion () {
console.log(this.#statusOutput) // tests that failed
// tests that failed
if (Object.keys(this.#statusOutput).length !== 0) {
console.log(this.#statusOutput)
}

this.emit('completion')
const { completed, failed, success, expectedFailures, skipped } = this.#stats
console.log(
`[${this.#folderName}]: ` +
`Completed: ${completed}, failed: ${failed}, success: ${success}, ` +
`completed: ${completed}, failed: ${failed}, success: ${success}, ` +
`expected failures: ${expectedFailures}, ` +
`unexpected failures: ${failed - expectedFailures}, ` +
`skipped: ${skipped}`
Expand Down

0 comments on commit b82c490

Please sign in to comment.