mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-15 18:13:38 +08:00
build: add bazel config that disabled sharding and flaky re-runs
This is useful when running tests locally as otherwise 50 workers are spawned when running the `//packages/angular_devkit/build_angular:build_angular_browser_test` target even when having an `fit` on a single test. This also disabled re-runs on flaky tests.
This commit is contained in:
parent
d6b9306de6
commit
ef248e059c
4
.bazelrc
4
.bazelrc
@ -8,6 +8,10 @@ build --strategy=TypeScriptCompile=worker
|
||||
# Enable debugging tests with --config=debug
|
||||
test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results
|
||||
|
||||
# Enable debugging tests with --config=no-sharding
|
||||
# The below is useful to while using `fit` and `fdescribe` to avoid sharing and re-runs of failed flaky tests.
|
||||
test:no-sharding --flaky_test_attempts=1 --test_sharding_strategy=disabled
|
||||
|
||||
###############################
|
||||
# Filesystem interactions #
|
||||
###############################
|
||||
|
Loading…
x
Reference in New Issue
Block a user