From a5c747f46d8328af54d4bc0dd1a744fb781eaa5f Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Fri, 8 Mar 2019 16:35:36 -0800 Subject: [PATCH] build: enable shard_count for some jasmine tests that have many specs (#29196) This partitions the spects across multiple processes so they run in parallel. PR Close #29196 --- packages/compiler-cli/test/compliance/BUILD.bazel | 1 + packages/compiler-cli/test/ngtsc/BUILD.bazel | 1 + packages/core/test/BUILD.bazel | 1 + 3 files changed, 3 insertions(+) diff --git a/packages/compiler-cli/test/compliance/BUILD.bazel b/packages/compiler-cli/test/compliance/BUILD.bazel index 56cc452d63..59d00a10ed 100644 --- a/packages/compiler-cli/test/compliance/BUILD.bazel +++ b/packages/compiler-cli/test/compliance/BUILD.bazel @@ -21,6 +21,7 @@ jasmine_node_test( data = [ "//packages/compiler-cli/test/ngtsc/fake_core:npm_package", ], + shard_count = 4, tags = [ "ivy-only", ], diff --git a/packages/compiler-cli/test/ngtsc/BUILD.bazel b/packages/compiler-cli/test/ngtsc/BUILD.bazel index e5bfd3f84f..a4f4316689 100644 --- a/packages/compiler-cli/test/ngtsc/BUILD.bazel +++ b/packages/compiler-cli/test/ngtsc/BUILD.bazel @@ -23,6 +23,7 @@ jasmine_node_test( data = [ "//packages/compiler-cli/test/ngtsc/fake_core:npm_package", ], + shard_count = 4, deps = [ ":ngtsc_lib", "//tools/testing:node_no_angular", diff --git a/packages/core/test/BUILD.bazel b/packages/core/test/BUILD.bazel index 99fa8a82cc..b3b0d109cc 100644 --- a/packages/core/test/BUILD.bazel +++ b/packages/core/test/BUILD.bazel @@ -58,6 +58,7 @@ ts_library( jasmine_node_test( name = "test", bootstrap = ["angular/tools/testing/init_node_spec.js"], + shard_count = 4, deps = [ ":test_lib", ":test_node_only_lib",