Skip to content
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

Update error handling after each Mocha test #20091

Merged
merged 1 commit into from Dec 28, 2018

Conversation

estherkim
Copy link
Collaborator

If a test fails to output expected console errors, the test runner will throw an error. Throwing an error kills Karma altogether and the remaining tests don't run.

This fixes the test runner config by setting the error on the current test.

Copy link
Contributor

@rsimha rsimha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very cool!

@rsimha rsimha merged commit ed5e1e6 into ampproject:master Dec 28, 2018
@estherkim estherkim deleted the dont-throw-karma branch December 28, 2018 18:48
slocka pushed a commit to skimhub/amphtml that referenced this pull request Jan 7, 2019
noranazmy pushed a commit to noranazmy/amphtml that referenced this pull request Mar 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants