-
Notifications
You must be signed in to change notification settings - Fork 6.8k
build: test material with bazel #13670
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: test material with bazel #13670
Conversation
f6bc578
to
c5bf364
Compare
c5bf364
to
0c2fa8c
Compare
tools/defaults.bzl
Outdated
@@ -72,15 +72,22 @@ def ng_test_library(deps = [], tsconfig = None, **kwargs): | |||
**kwargs | |||
) | |||
|
|||
def ng_web_test_suite(deps = [], srcs = [], static_css = [], **kwargs): | |||
def ng_web_test_suite(deps = [], srcs = [], static_css = [], prebuilt_theme = False, |
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.
Ah, I wasn't clear in out conversation- the prebuilt_theme
attribute should just be removed completely.
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.
So just manually specify the theme for each target?
We cannot always add a theme if this macro is being used because the CDK tests also use the same macro.
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.
I was thinking that it would be fine to include it for the cdk tests too; they shouldn't be affected either way.
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.
I see, it's still feels a bit odd to have CDK tests use a prebuilt theme, but I agree that this makes it consistent to how the tests run w/ Gulp + themes shouldn't affect the CDK tests.
Done! please have another look 😄
* Supports testing `src/lib` with Bazel.
0c2fa8c
to
1d9c58f
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
* build: test material with bazel * Supports testing `src/lib` with Bazel. * Add prebuilt theme to all Material tests * Always include prebuilt theme. Rebase changes for paginator spec
* build: test material with bazel * Supports testing `src/lib` with Bazel. * Add prebuilt theme to all Material tests * Always include prebuilt theme. Rebase changes for paginator spec
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. |
src/lib
with Bazel.Note: Very few tests had to be updated because w/ Bazel the HTML files are not minified and therefore there could be some whitespace (even with
preserveWhitespace
=false
by default).