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

test: drop jasmine test runner #1519

Merged
merged 1 commit into from
Dec 8, 2017

Conversation

aslushnikov
Copy link
Contributor

This patch introduces a tiny test runner to run puppeteer tests.
The test runner is self-container and allows parallel test execution.
It will also allow us to split tests into multiple files if necessary.

Comparing to the jasmine, the testrunner supports parallel execution, properly
handles "unhandled promise rejection" event and signals.

Comparing to ava/jest, the testrunner doesn't run multiple node processes,
which makes it simpler but sufficient for our goals.

test/test.js Outdated
const reporter = new Reporter(runner);

const {describe, xdescribe, fdescribe} = runner;
const {it, fit, xit} = runner;
Copy link
Contributor

Choose a reason for hiding this comment

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

we should probably have an eslint-disable here for the unused variable rule.

const timeout = process.env.DEBUG_TEST || slowMo ? 0 : 10 * 1000;

const {TestRunner, Reporter, Matchers} = require('../utils/testrunner/');
const runner = new TestRunner({timeout});
Copy link
Contributor

Choose a reason for hiding this comment

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

The main benefit of the test runner is that it runs tests in parallel right? This patch looks fine, but I don't think we should land it until we are sure that the tests run correctly in parallel on the bots.

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's not run tests in parallel.

@aslushnikov aslushnikov force-pushed the new-testrunner branch 2 times, most recently from 2177e9a to 7607f50 Compare December 7, 2017 23:22
This patch drops jasmine test runner in favor of a home-grown
test runner.
@aslushnikov aslushnikov merged commit e6725e1 into puppeteer:master Dec 8, 2017
@aslushnikov aslushnikov deleted the new-testrunner branch January 25, 2018 21:54
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