
We are close enough to blacklist a few test targets, rather than whitelist targets to run... Because bazel rules can be composed of other rules that don't inherit tags automatically, I had to explicitly mark all of our ts_library and ng_module targes with "ivy-local" and "ivy-jit" tags so that we can create a query that excludes all fixme- tagged targets even if those targets are composed of other targets that don't inherit this tag. This is the updated overview of ivy related bazel tags: - ivy-only: target that builds or runs only under ivy - fixme-ivy-jit: target that doesn't yet build or run under ivy with --compile=jit - fixme-ivy-local: target that doesn't yet build or run under ivy with --compile=local - no-ivy-jit: target that is not intended to build or run under ivy with --compile=jit - no-ivy-local: target that is not intended to build or run under ivy with --compile=local PR Close #26471
134 lines
3.0 KiB
Python
134 lines
3.0 KiB
Python
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
|
|
|
ts_library(
|
|
name = "mocks",
|
|
testonly = True,
|
|
srcs = [
|
|
"mocks.ts",
|
|
],
|
|
deps = [
|
|
"//packages:types",
|
|
"//packages/compiler",
|
|
"//packages/compiler-cli",
|
|
"//packages/compiler-cli/test:test_utils",
|
|
"//packages/core",
|
|
"@ngdeps//typescript",
|
|
],
|
|
)
|
|
|
|
# check_types_spec
|
|
ts_library(
|
|
name = "check_types_lib",
|
|
testonly = True,
|
|
srcs = ["check_types_spec.ts"],
|
|
deps = [
|
|
":mocks",
|
|
"//packages/compiler-cli",
|
|
"//packages/compiler-cli/test:test_utils",
|
|
"@ngdeps//typescript",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "check_types",
|
|
timeout = "long", # 900 seconds
|
|
bootstrap = ["angular/tools/testing/init_node_spec.js"],
|
|
data = [
|
|
"//packages/common:npm_package",
|
|
"//packages/core:npm_package",
|
|
],
|
|
tags = [
|
|
"fixme-ivy-local",
|
|
"no-ivy-jit",
|
|
],
|
|
deps = [
|
|
":check_types_lib",
|
|
"//packages/core",
|
|
"//tools/testing:node",
|
|
],
|
|
)
|
|
|
|
# expression_diagnostics_spec
|
|
ts_library(
|
|
name = "expression_diagnostics_lib",
|
|
testonly = True,
|
|
srcs = ["expression_diagnostics_spec.ts"],
|
|
deps = [
|
|
":mocks",
|
|
"//packages/compiler",
|
|
"//packages/compiler-cli",
|
|
"//packages/compiler-cli/test:test_utils",
|
|
"//packages/language-service",
|
|
"@ngdeps//typescript",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "expression_diagnostics",
|
|
bootstrap = ["angular/tools/testing/init_node_spec.js"],
|
|
data = [
|
|
"//packages/common:npm_package",
|
|
"//packages/core:npm_package",
|
|
"//packages/forms:npm_package",
|
|
],
|
|
tags = [
|
|
"fixme-ivy-local",
|
|
"no-ivy-jit",
|
|
],
|
|
deps = [
|
|
":expression_diagnostics_lib",
|
|
"//packages/core",
|
|
"//tools/testing:node",
|
|
],
|
|
)
|
|
|
|
# typescript_symbols_spec
|
|
ts_library(
|
|
name = "typescript_symbols_lib",
|
|
testonly = True,
|
|
srcs = ["typescript_symbols_spec.ts"],
|
|
deps = [
|
|
":mocks",
|
|
"//packages/compiler",
|
|
"//packages/compiler-cli",
|
|
"//packages/compiler-cli/test:test_utils",
|
|
"//packages/compiler/test:test_utils",
|
|
"//packages/language-service",
|
|
"@ngdeps//typescript",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "typescript_symbols",
|
|
bootstrap = ["angular/tools/testing/init_node_spec.js"],
|
|
data = [
|
|
],
|
|
deps = [
|
|
":typescript_symbols_lib",
|
|
"//packages/core",
|
|
"//tools/testing:node",
|
|
],
|
|
)
|
|
|
|
# typescript_version_spec
|
|
ts_library(
|
|
name = "typescript_version_lib",
|
|
testonly = True,
|
|
srcs = ["typescript_version_spec.ts"],
|
|
deps = [
|
|
"//packages/compiler-cli",
|
|
"//packages/compiler-cli/test:test_utils",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "typescript_version",
|
|
bootstrap = ["angular/tools/testing/init_node_spec.js"],
|
|
data = [
|
|
],
|
|
deps = [
|
|
":typescript_version_lib",
|
|
"//tools/testing:node",
|
|
],
|
|
)
|