-
Notifications
You must be signed in to change notification settings - Fork 780
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CLI: Fix TAP compliance for early errors (e.g. syntax error in test f…
…ile) Cherry-picked from 62ca15a (3.0.0-dev). > Core: Convert "No tests were run." from fake test to error Early errors produced output like so: ``` not ok 1 global failure --- message: ReferenceError: boom is not defined stack: | ReferenceError: boom is not defined at /example.test.js ... Bail out! ReferenceError: boom is not defined TAP version 13 1..1 ``` Instead of: ``` TAP version 13 not ok 1 global failure --- message: ReferenceError: boom is not defined stack: | ReferenceError: boom is not defined at /example.test.js ... Bail out! ReferenceError: boom is not defined 1..1 ``` Because prior to the introduction of the "error" event in 2.17.0, the only failures were test failures, and those would not begin until after QUnit.begin() / "runStart" event.
- Loading branch information
Showing
4 changed files
with
17 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters