-
Notifications
You must be signed in to change notification settings - Fork 36
Run Emscripten tests in a browser #294
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
Run Emscripten tests in a browser #294
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #294 +/- ##
=======================================
Coverage 81.78% 81.78%
=======================================
Files 20 20
Lines 950 950
Branches 87 87
=======================================
Hits 777 777
Misses 173 173 🚀 New features to boost your workflow:
|
32c6236
to
93dd06f
Compare
Running the tests makes use of emrun which comes with Emscripten. The documentation for emrun can be found here https://emscripten.org/docs/compiling/Running-html-files-with-emrun.html |
944d734
to
d72f58a
Compare
d72f58a
to
2d3ebbf
Compare
Hey @DerThorsten I would really appreciate your expertise here. Please let us if this should be our GoTo method to address the problem statement here. The contributor has made quite some comments describing his approach here. Feel free to let us know if we can do better. Thanks ! |
IIRC, @mcbarton mentioned he discussed that at the emscripten discord or similar. |
emscripten-core/emscripten#24273 - This is where I discussed it previously with Emscripten maintainers. I asked the Emscripten maintainers about this PR, and they said that emrun is a reasonable way to run Emscripten tests in a browser, and that my emrun command looks reasonable. |
dffa830
to
4912297
Compare
I've added the PR comments, as comments in the files as requested here #294 (comment) |
a2d3dc8
to
e295736
Compare
e295736
to
98dd563
Compare
@anutosh491 pinging you on this PR, since you said it would go in by the end of today in the Discord chat with @vgvassilev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm!
Writing my thoughts. |
@vgvassilev It was my understanding that it had already been decided on our Discord group chat that this would go in today. Are you happy for me to merge this, and I can deal with any of any @anutosh491 thoughts post merge, or would you like me to wait? |
Hey @SylvainCorlay , I went through this PR today and I don't have any strong opinions here (probably I'm not educated enough or falling short on time to educate myself with all going on here) I tagged @DerThorsten couple days back but haven't heard from him. So do you have any opinions if this is how we should test stuff in the browser ? Some surface level reviews
EDIT : Also after build and install, running jupyterlite comes way below (I would like a user to try lite first, then test stuff if they really want to, let's have the complete build workflow first and then have the test workflow ?) That being said, these are just my thoughts. If anyone thinks otherwise and can't wait on this, feel free to move it in. |
For in-browser testing, my initial thought was that we could use Galata for full integration tests with Jupyter, including visual non-regression tests, but I like this approach of running the standard C++ tests in the browser with emrun. Galata-based integration tests could be added at a later stage, including for the native builds. |
Description
Please include a summary of changes, motivation and context for this PR.
This PR adds the ability to run the Emscripten tests in a browser
Fixes # (issue)
Type of change
Please tick all options which are relevant.