-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Expand file tree
/
Copy pathBUILD.bazel
More file actions
109 lines (101 loc) · 2.42 KB
/
BUILD.bazel
File metadata and controls
109 lines (101 loc) · 2.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
load("//tools:defaults.bzl", "ng_project", "ts_project")
package(default_visibility = ["//visibility:public"])
ng_project(
name = "test_components",
testonly = True,
srcs = glob(
["**/*.ts"],
exclude = [
"**/*.spec.ts",
"cross-environment-tests.ts",
"harnesses/**",
],
),
assets = glob(["**/*.html"]),
deps = [
"//:node_modules/@angular/core",
"//:node_modules/@angular/forms",
"//src/cdk/keycodes",
"//src/cdk/platform",
],
)
ts_project(
name = "test_harnesses",
srcs = glob(["harnesses/**/*.ts"]),
deps = [
"//src/cdk/testing",
],
)
ts_project(
name = "cross_environment_tests",
testonly = True,
srcs = ["cross-environment-tests.ts"],
deps = [
":test_harnesses",
"//:node_modules/@angular/core",
"//src/cdk/testing",
],
)
ng_project(
name = "unit_test_sources",
testonly = True,
srcs = glob(
[
"**/*.spec.ts",
],
exclude = [
"**/*.e2e.spec.ts",
],
),
deps = [
":cross_environment_tests",
":test_components",
":test_harnesses",
"//:node_modules/@angular/core",
"//:node_modules/@angular/platform-browser",
"//:node_modules/kagekiri",
"//src/cdk/platform",
"//src/cdk/testing",
"//src/cdk/testing/testbed",
],
)
ts_project(
name = "e2e_test_sources",
testonly = True,
srcs = glob(
[
"**/*.e2e.spec.ts",
],
exclude = ["webdriver.e2e.spec.ts"],
),
deps = [
":cross_environment_tests",
":test_harnesses",
"//:node_modules/protractor",
"//src/cdk/testing",
"//src/cdk/testing/protractor",
],
)
ts_project(
name = "webdriver_test_sources",
testonly = True,
srcs = ["webdriver.e2e.spec.ts"],
deps = [
":cross_environment_tests",
":test_harnesses",
"//:node_modules/@bazel/runfiles",
"//:node_modules/@types/jasmine",
"//:node_modules/@types/node",
"//:node_modules/@types/selenium-webdriver",
"//src/cdk/testing",
"//src/cdk/testing/selenium-webdriver",
],
)
# Source code of the tests exposed for integration test purposes.
filegroup(
name = "sources_for_integration_tests",
srcs = glob([
"**/*.ts",
"**/*.html",
]),
)