Skip to content

Commit 03e7a2e

Browse files
committed
ds
ds
1 parent aeabbf6 commit 03e7a2e

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

.circleci/config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,10 @@ jobs:
337337
- run:
338338
name: Running tests
339339
command: |
340-
TESTS=$(yarn -s bazel query --output label 'attr("tags", "saucelabs", //src/...)')
340+
TESTS=$(yarn -s bazel query --output label '
341+
attr("tags", "saucelabs", //src/...)
342+
except attr("tags", "skip-on-remote-browsers", //src/...)
343+
')
341344
yarn -s bazel build ${TESTS}
342345
yarn -s bazel test ${TESTS} --jobs=2
343346

src/material/core/ripple/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ export * from './ripple';
1515
export * from './ripple-ref';
1616
export * from './ripple-renderer';
1717

18+
// test
19+
1820
@NgModule({
1921
imports: [MatCommonModule, PlatformModule],
2022
exports: [MatRipple, MatCommonModule],

tools/defaults.bzl

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,14 +214,22 @@ def karma_web_test_suite(name, **kwargs):
214214
sauce_web_test_args["deps"] = sauce_web_test_args.get("deps", []) + [
215215
"//test:karma-saucelabs-config",
216216
]
217+
sauce_web_test_args["tags"] = sauce_web_test_args.get("tags", []) + [
218+
"manual", "saucelabs", "no-remote-exec"
219+
]
220+
current_package = native.package_name()
221+
222+
# Do not run brower tests from the `/testing` entry-points, or from the
223+
# components examples on remote browsers (i.e. Saucelabs).
224+
if current_package.endswith("/testing") or \
225+
current_package.startswith("src/components-examples/"):
226+
sauce_web_test_args["tags"] += ["skip-on-remote-browsers"]
217227

218228
# Add a saucelabs target for these karma tests
219229
karma_web_test(
220230
name = "%s_saucelabs" % name,
221231
timeout = "long",
222232
config_file = "//test:karma-saucelabs.conf.js",
223-
tags = ["manual", "saucelabs", "no-remote-exec"],
224-
flaky = False,
225233
**sauce_web_test_args
226234
)
227235

0 commit comments

Comments
 (0)