Skip to content

Switch from Chromeless to Puppeteer for tests #537

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

Closed
wants to merge 4 commits into from

Conversation

adroitwhiz
Copy link
Contributor

@adroitwhiz adroitwhiz commented Jan 8, 2020

Resolves

Resolves #564

Proposed Changes

This PR switches the integration tests from Chromeless to Puppeteer.

Puppeteer recommends using its bundled version of Chromium, but this would result in downloading a couple hundred megabytes of Chromium every time you ran npm install. Instead, I've added a script that only downloads the bundled Chromium when you actually run the tests, and removed Chrome as an addon from .travis.yml.

Reason for Changes

Chromeless was deprecated mid-2018 and has not been updated since then.

When investigating #535, I thought it would be a good idea to run tests on both the CPU and GPU, to ensure they give the same results. Since doing so would require modifying the test framework anyway, I thought it'd be a good idea to update the tests to use up-to-date software. As such, this PR is somewhat of a prerequisite to running CPU/GPU parity tests. [EDIT: running tests on both the CPU and GPU was already implemented in #419; it was simply reverted. Nevertheless, moving away from a deprecated library is still a good idea]

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.

Chromeless, used for integration tests, is deprecated
4 participants