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

chore(testrunner): introduce tests for TestRunner #4773

Merged
merged 1 commit into from
Jul 30, 2019

Conversation

aslushnikov
Copy link
Contributor

This adds some basic tests for the test runner.

This adds some basic tests for the test runner.
@@ -64,7 +64,7 @@ class UserCallback {
const from = frame.indexOf('(');
frame = frame.substring(from + 1, frame.length - 1);
} else {
frame = frame.substring('at '.length + 1);
frame = frame.substring('at '.length);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was an actual bug

if (termination)
this.emit(TestRunner.Events.Terminated, termination.message, termination.error);
else
this.emit(TestRunner.Events.Finished);
}

terminate() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm adding this here as a testRunner API. I'll probably move process signal handling to the Reporter that will use this api.

@aslushnikov aslushnikov merged commit 7406b18 into puppeteer:master Jul 30, 2019
@aslushnikov aslushnikov deleted the testrunner-tests branch July 30, 2019 20:19
rfojtik pushed a commit to rfojtik/puppeteer that referenced this pull request Dec 21, 2019
This adds some basic tests for the test runner.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants