angular-cn/integration/bazel/test/e2e/BUILD.bazel

42 lines
941 B
Python

load("@npm//@bazel/protractor:index.bzl", "protractor_web_test_suite")
load("@npm//@bazel/typescript:index.bzl", "ts_library")
ts_library(
name = "e2e",
testonly = 1,
srcs = ["app.spec.ts"],
tsconfig = ":tsconfig.json",
deps = [
"@npm//@types/jasmine",
"@npm//protractor",
],
)
ts_library(
name = "ts_on_prepare",
testonly = 1,
srcs = ["on-prepare.ts"],
tsconfig = ":tsconfig.json",
deps = [
"@npm//@bazel/protractor",
"@npm//@types/node",
"@npm//protractor",
],
)
protractor_web_test_suite(
name = "devserver_test",
configuration = "//:protractor.conf.js",
on_prepare = ":ts_on_prepare",
server = "//src:devserver",
deps = [":e2e"],
)
protractor_web_test_suite(
name = "prodserver_test",
configuration = "//:protractor.conf.js",
on_prepare = ":ts_on_prepare",
server = "//src:prodserver",
deps = [":e2e"],
)