Help running tests in a browser in GitHub Actions #21578
-
Hey, I have a wasm/js/HTML thing built. I would like to run it on a browser in GitHub Actions CI and print the console.log output to the CI log and if possible also grab a file that is generated in the MEMFS/IDBFS. Any ideas on this are welcome. Asking here because I imagine more people have the need to test their code in CI pipelines that are also here. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
In general you can run browsers in headless mode on CI. Here is where Emscripten itself does that: emscripten/.circleci/config.yml Line 311 in ecdca7b Note the use of "new" headless mode in Chrome there, which works better in our experience. Running with |
Beta Was this translation helpful? Give feedback.
In general you can run browsers in headless mode on CI. Here is where Emscripten itself does that:
emscripten/.circleci/config.yml
Line 311 in ecdca7b
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 capturesconsole.log
as well but that should be easy to hook up too.