-
Notifications
You must be signed in to change notification settings - Fork 782
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Core: Fix test counter bug when nesting invalid test functions (#1515)
This doesn't affect end-users, since nesting QUnit.test() calls isn't supported. In our own unit tests, we assert early bail out behaviour for passing invalid arguments to QUnit.test(), and naturally we do this from inside another QUnit.test() call. The previous code left bailed out *after* we had already registered the test and handed out references to reporting code. This meant that it would count this as two tests of which one had an unknown state, which js-reporters casts to a failed test. This wasn't caught in CI because: - When we run the test via the HTML Reporter and via the test-on-node task, we report it via the legacy QUnit.testDone() and QUnit.done() which didn't pay attention to this half-known test. - And we don't currently run this test via the QUnit CLI (if we did, it would be failing) Fixes #1514
- Loading branch information
Showing
2 changed files
with
24 additions
and
25 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