Skip to content

Conversation

@GeoffreyBooth
Copy link
Collaborator

@GeoffreyBooth GeoffreyBooth commented Jan 30, 2020

This PR changes the cake test:browser command to run a local version of the browser-based tests (https://coffeescript.org/test.html) in a headless Chrome browser. The previous test:browser behavior is moved to test:browser:node.

I was previously doing this manually as part of every release, but that’s both error-prone and problematic when we do discover issues, as happened in #5284. Since this can now run as part of CI, we should know at the time of PR (rather than release) whether a new PR breaks the browser compiler or browser tests.

There’s one other benefit: This tests the ES module version of the browser compiler, which the previous Node-based test did not. Previously we had no automated test coverage of the ES module version of our compiler.

As part of this PR, I moved our CI testing to use GitHub Actions instead of Travis and AppVeyor, because I needed to vary the commands for Node 6 and Node 8 and that didn't seem possible in Travis and seemed complicated in AppVeyor. Now CI is all in one place, and we have the additional benefit of testing not just Linux and Windows but Mac as well.

@GeoffreyBooth GeoffreyBooth force-pushed the test-browser-headless branch 3 times, most recently from 201c5b9 to afb4d4a Compare February 1, 2020 00:36
@GeoffreyBooth GeoffreyBooth force-pushed the test-browser-headless branch 15 times, most recently from 949e0cc to b5d802a Compare May 26, 2020 03:36
@GeoffreyBooth GeoffreyBooth changed the title Run browser tests in headless Chrome Run browser tests in headless Chrome; replace Travis and AppVeyor with GitHub Actions May 26, 2020
@GeoffreyBooth GeoffreyBooth force-pushed the test-browser-headless branch from b5d802a to 84a60d3 Compare May 26, 2020 03:52
@GeoffreyBooth GeoffreyBooth merged commit 389ce89 into jashkenas:master May 26, 2020
@GeoffreyBooth GeoffreyBooth deleted the test-browser-headless branch May 26, 2020 04:03
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.

1 participant