2018-05-29 18:35:48 -04:00
|
|
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
2018-07-06 17:51:37 -04:00
|
|
|
load("@angular//:index.bzl", "protractor_web_test_suite")
|
2018-05-29 18:35:48 -04:00
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "e2e",
|
|
|
|
testonly = 1,
|
2018-07-06 17:51:37 -04:00
|
|
|
srcs = ["app.spec.ts"],
|
|
|
|
)
|
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "ts_on_prepare",
|
|
|
|
testonly = 1,
|
|
|
|
srcs = ["on-prepare.ts"],
|
|
|
|
tsconfig = ":tsconfig.json",
|
|
|
|
deps = ["@angular//src/protractor/utils"],
|
|
|
|
)
|
|
|
|
|
|
|
|
protractor_web_test_suite(
|
|
|
|
name = "devserver_test",
|
|
|
|
configuration = "//:protractor.conf.js",
|
|
|
|
data = ["@angular//src/protractor/utils"],
|
|
|
|
on_prepare = ":ts_on_prepare",
|
|
|
|
server = "//src:devserver",
|
|
|
|
deps = [":e2e"],
|
|
|
|
)
|
|
|
|
|
|
|
|
protractor_web_test_suite(
|
|
|
|
name = "prodserver_test",
|
|
|
|
configuration = "//:protractor.conf.js",
|
|
|
|
data = ["@angular//src/protractor/utils"],
|
|
|
|
on_prepare = ":ts_on_prepare",
|
|
|
|
server = "//src:prodserver",
|
|
|
|
deps = [":e2e"],
|
2018-05-29 18:35:48 -04:00
|
|
|
)
|