Skip to content

Help running tests in a browser in GitHub Actions #21578

Answered by kripken
ericoporto asked this question in Q&A
Discussion options

You must be logged in to vote

In general you can run browsers in headless mode on CI. Here is where Emscripten itself does that:

CHROME_FLAGS_HEADLESS: "--headless=new --remote-debugging-port=1234"

Note the use of "new" headless mode in Chrome there, which works better in our experience.

Running with emrun should log out stdout/stderr to the console. I don't think it captures console.log as well but that should be easy to hook up too.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ericoporto
Comment options

@sbc100
Comment options

@ericoporto
Comment options

Answer selected by ericoporto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants