File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -337,7 +337,10 @@ jobs:
337
337
- run :
338
338
name : Running tests
339
339
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
+ ')
341
344
yarn -s bazel build ${TESTS}
342
345
yarn -s bazel test ${TESTS} --jobs=2
343
346
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ export * from './ripple';
15
15
export * from './ripple-ref' ;
16
16
export * from './ripple-renderer' ;
17
17
18
+ // test
19
+
18
20
@NgModule ( {
19
21
imports : [ MatCommonModule , PlatformModule ] ,
20
22
exports : [ MatRipple , MatCommonModule ] ,
Original file line number Diff line number Diff line change @@ -214,14 +214,22 @@ def karma_web_test_suite(name, **kwargs):
214
214
sauce_web_test_args ["deps" ] = sauce_web_test_args .get ("deps" , []) + [
215
215
"//test:karma-saucelabs-config" ,
216
216
]
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" ]
217
227
218
228
# Add a saucelabs target for these karma tests
219
229
karma_web_test (
220
230
name = "%s_saucelabs" % name ,
221
231
timeout = "long" ,
222
232
config_file = "//test:karma-saucelabs.conf.js" ,
223
- tags = ["manual" , "saucelabs" , "no-remote-exec" ],
224
- flaky = False ,
225
233
** sauce_web_test_args
226
234
)
227
235
You can’t perform that action at this time.
0 commit comments