-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Maintenance: consider migration from karma-runner to jasmine-browser-runner. #12141
Comments
Oh, so it's deprecated. Err... yes we should migrate the framework. @chrisjsewell Maybe we shouldn't add the tip for karma then? |
Well that's still the tip for getting it to work right now 😄 My question in general would be, if we need to migrate, should we take the opportunity to move to the "best", "most well used" framework available, and what is that? Selenium, Playwright or Cyress come to mind. |
I would say, the one that features what we would need and possibly what we could need. Something that does not need 10000 of dependencies and something that can be used with the most common browsers (Firefox, Chrome, and Safari, I'd say). Personally, I only wrote code in JS using Angular (and it was actually typescript) and it was using karma... So perhaps we can use the same framework as what Angular or React would use behind the scenes. It could increase the community. I actually don't know how popular Selenium, PW or Cyress are compared to each others and which one is the best and why so I'll leave it to people who would contribute to JS tests. |
Lightweight, simple, available, and working would be my vote (so that's approximately: stay with The fact that we don't use frameworks or have heavyweight dependencies is useful for compatibility, adoptability by downstream users, auditability, performance and various other things. |
I would definitely look at https://www.cypress.io/ as well though, because it was pretty lightweight and easy to integrate into sphinx-needs testing |
Ok, will do :) (and will compare to |
|
My rule of thumb for popularity (i.e. adoption by size of user base) is checking how many SO Qs there are for each tag, together with GH users (e.g. playwright indicates 72.7k whereas cypress indicates 1.3 million)... So at time of writing:
I'd tend to avoid playwright because it's Microsoft so it's not much inline with Sphinx's open-source philosophy. |
The JavaScript tests are really very simple so I'd be wary of a complex or complicated testing solution. |
Describe the bug
The Karma browser-based test framework that we use to run tests for the Sphinx JavaScript code that runs in the client browser is deprecated.
We may want to consider migration. The
karma
project's deprecation notice suggestsjasmine-browser-runner
as an alternative.How to Reproduce
N/A
Environment Information
Sphinx extensions
Additional context
No response
The text was updated successfully, but these errors were encountered: