rules_nodejs icon indicating copy to clipboard operation
rules_nodejs copied to clipboard

Run jasmine tests with karma_web_test and karma_web_test_suite

Open mollyibot opened this issue 5 months ago • 5 comments

I noticed there were karma_web_test and karma_web_test_suite used in some repos but they seem to be deprecated. What is the recommended way to run jasmine tests using karma test runner with web interactions in bzlmod? Thanks

mollyibot avatar Jul 23 '25 06:07 mollyibot

Maybe @devversion can give some updated guidance, my sense is Karma is pretty dead.

alexeagle avatar Jul 24 '25 02:07 alexeagle

We're using Web Test Runner via https://github.com/devversion/rules_browsers with Puppeteer, but it's also not super great— but at least allows us to stay on the Jasmine test runner (which simply runs in the browser then)

devversion avatar Jul 24 '25 06:07 devversion

Does this offer support with web interactions?

mollyibot avatar Jul 24 '25 17:07 mollyibot

@mollyibot depends on which interactions you need. This ruleset is mostly for our Angular needs, but it supports WTR (as Karma replacement) + there is a rule for Protractor testing. Easy to build a selenium-webdriver rule on top of that.

devversion avatar Aug 06 '25 09:08 devversion

@kevinoconnor7 @gkdn, how about this approach?

mollyibot avatar Aug 06 '25 17:08 mollyibot