-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get rid of "--delay" mocha CLI option #364
Merged
Merged
Commits on Sep 22, 2021
-
Get rid of "--delay" mocha CLI option
This is needed to fix #363. The `--delay` option requires the code to call the `run` function only once and we were calling it multiple times. More importantly, Mocha does not catch exceptions thrown at the root level and simply reports nothing when that happens. These exceptions typically get thrown when the IDL cannot be parsed, meaning that invalid data exceptions mostly went unnoticed... This update wraps all code that needs to run before tests in a `before` function. Note the need to keep a "dummy" test at the root level, otherwise the `before` function won't run (and wouldn't have anywhere to report failure). This update slightly improves describe/it tests naming as well.
Configuration menu - View commit details
-
Copy full SHA for f731a2e - Browse repository at this point
Copy the full SHA f731a2eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c063722 - Browse repository at this point
Copy the full SHA c063722View commit details -
Co-authored-by: Dominique Hazael-Massieux <dom@w3.org>
Configuration menu - View commit details
-
Copy full SHA for 927b130 - Browse repository at this point
Copy the full SHA 927b130View commit details -
Co-authored-by: Dominique Hazael-Massieux <dom@w3.org>
Configuration menu - View commit details
-
Copy full SHA for f04d3b2 - Browse repository at this point
Copy the full SHA f04d3b2View commit details -
Co-authored-by: Dominique Hazael-Massieux <dom@w3.org>
Configuration menu - View commit details
-
Copy full SHA for 0efb354 - Browse repository at this point
Copy the full SHA 0efb354View commit details -
Co-authored-by: Dominique Hazael-Massieux <dom@w3.org>
Configuration menu - View commit details
-
Copy full SHA for aa542ae - Browse repository at this point
Copy the full SHA aa542aeView commit details -
Update test/elements/consistency.js
Co-authored-by: Dominique Hazael-Massieux <dom@w3.org>
Configuration menu - View commit details
-
Copy full SHA for 52f844b - Browse repository at this point
Copy the full SHA 52f844bView commit details -
Co-authored-by: Dominique Hazael-Massieux <dom@w3.org>
Configuration menu - View commit details
-
Copy full SHA for 882bf12 - Browse repository at this point
Copy the full SHA 882bf12View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.