From db08fd2607eecc2ff0d2bc2e54228f0b4581f899 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 (#31009) This partitions the spects across multiple processes so they run in parallel. PR Close #31009 --- 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 bc1d670deb..6356ef5d41 100644 --- a/packages/core/test/BUILD.bazel +++ b/packages/core/test/BUILD.bazel @@ -59,6 +59,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",