-
Notifications
You must be signed in to change notification settings - Fork 6.8k
build: switch test targets to karma_web_test_suite #16818
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
build: switch test targets to karma_web_test_suite #16818
Conversation
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
CI failures look related? |
@jelbourn Yeah, I wanted to get back to fix these, but got stuck on restructuring the examples. will let you know when this is ready. |
357b7e9
to
afa8f21
Compare
Switches all `ts_web_test_suite` targets to the new `karma_web_test_suite` rule. `ts_web_test_suite` is based on the `karma_web_test_suite` rule but does not allow developers to have a custom karma configuration. In order to be able to provide a custom karma configuration for setting up Saucelabs and Browserstack, we switch all targets over to the `karma_web_test_suite` rule. See: bazelbuild/rules_typescript#363.
afa8f21
to
29ceb2b
Compare
@jelbourn PR is ready for review now. |
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
Switches all `ts_web_test_suite` targets to the new `karma_web_test_suite` rule. `ts_web_test_suite` is based on the `karma_web_test_suite` rule but does not allow developers to have a custom karma configuration. In order to be able to provide a custom karma configuration for setting up Saucelabs and Browserstack, we switch all targets over to the `karma_web_test_suite` rule. See: bazelbuild/rules_typescript#363. (cherry picked from commit c791926)
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Switches all
ts_web_test_suite
targets to the newkarma_web_test_suite
rule.ts_web_test_suite
isbased on the
karma_web_test_suite
rule but does notallow developers to have a custom karma configuration.
In order to be able to provide a custom karma configuration
for setting up Saucelabs and Browserstack, we switch all
targets over to the
karma_web_test_suite
rule.See: bazelbuild/rules_typescript#363.
@josephperrott I don't think we want to provide a custom karma configuration for all targets right now. Only the target that runs on Saucelabs should provide the custom karma configuration. We prospectively will have targets that combine multiple tests to avoid rate and browser limits.
Ideally even then, we would not need to specify a custom karma configuration as the default karma configuration for Bazel has an integrated mechanism for using saucelabs. see:
https://github.com/bazelbuild/rules_nodejs/blob/master/packages/karma/src/karma.conf.js#L311