-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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: add option to start karma without browser #17912
build: add option to start karma without browser #17912
Conversation
Note: In the past we talked about this and said that we should just leave that to the We can consider this a PoC and move it over to |
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.
cc @alexeagle
tools/defaults.bzl
Outdated
|
||
# Workaround for: https://github.com/bazelbuild/rules_nodejs/issues/1429 | ||
native.sh_binary( | ||
name = "%s_static" % name, |
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.
Can we make this _local
instead? That's the name we use inside Google and it would make it easier to remember
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.
Yeah. I like that more. 👍
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.
Overall LGTM
tools/defaults.bzl
Outdated
@@ -154,14 +154,38 @@ def ng_e2e_test_library(deps = [], tsconfig = None, **kwargs): | |||
**kwargs | |||
) | |||
|
|||
def karma_web_test_suite(deps = [], srcs = [], **kwargs): | |||
def karma_web_test_suite(name = None, **kwargs): |
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.
Can we make name a required parameter? Having it as non-required could get weird results
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.
done.
2b0b133
to
543874a
Compare
Adds a way to start Karma without a browser. Similar to `yarn gulp test:static`. The targets can be run the following way and work with `ibazel` watch mode. `yarn ibazel run src/cdk/a11y:unit_tests_local`.
543874a
to
e27b768
Compare
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
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. |
Adds a way to start Karma without a browser. Similar to
yarn gulp test:static
.The targets can be run the following way and work with
ibazel
watchmode.
yarn ibazel run src/cdk/a11y:unit_tests_static
.