Skip to content

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

Merged

Conversation

devversion
Copy link
Member

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.

@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

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Aug 19, 2019
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn
Copy link
Member

jelbourn commented Aug 19, 2019

CI failures look related?

@devversion
Copy link
Member Author

@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.

@jelbourn jelbourn added the target: patch This PR is targeted for the next patch release label Aug 19, 2019
@devversion devversion added the in progress This issue is currently in progress label Aug 19, 2019
@devversion devversion force-pushed the build/switch-to-karma-web-test-suite branch from 357b7e9 to afa8f21 Compare August 20, 2019 08:59
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.
@devversion devversion force-pushed the build/switch-to-karma-web-test-suite branch from afa8f21 to 29ceb2b Compare August 20, 2019 09:20
@devversion devversion added pr: merge safe and removed in progress This issue is currently in progress labels Aug 20, 2019
@devversion
Copy link
Member Author

@jelbourn PR is ready for review now.

Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Aug 20, 2019
@jelbourn jelbourn merged commit c791926 into angular:master Aug 20, 2019
andrewseguin pushed a commit that referenced this pull request Aug 26, 2019
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)
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants