2019-02-08 17:01:51 -05:00
|
|
|
load("@npm_bazel_typescript//:defs.bzl", "ts_library")
|
2019-02-19 19:15:06 -05:00
|
|
|
load("@npm_angular_bazel//: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"],
|
2018-07-27 14:32:51 -04:00
|
|
|
tsconfig = ":tsconfig.json",
|
2018-10-04 16:14:14 -04:00
|
|
|
deps = [
|
|
|
|
"@npm//@types",
|
|
|
|
"@npm//protractor",
|
|
|
|
],
|
2018-07-06 17:51:37 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "ts_on_prepare",
|
|
|
|
testonly = 1,
|
|
|
|
srcs = ["on-prepare.ts"],
|
|
|
|
tsconfig = ":tsconfig.json",
|
2018-10-04 16:14:14 -04:00
|
|
|
deps = [
|
2018-10-16 16:20:00 -04:00
|
|
|
"@npm//@angular/bazel",
|
2018-10-04 16:14:14 -04:00
|
|
|
"@npm//@types",
|
|
|
|
"@npm//protractor",
|
|
|
|
],
|
2018-07-06 17:51:37 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
protractor_web_test_suite(
|
|
|
|
name = "devserver_test",
|
|
|
|
configuration = "//:protractor.conf.js",
|
2018-10-04 16:14:14 -04:00
|
|
|
data = [
|
2018-10-16 16:20:00 -04:00
|
|
|
"@npm//@angular/bazel",
|
2018-10-04 16:14:14 -04:00
|
|
|
"@npm//protractor",
|
|
|
|
],
|
2018-07-06 17:51:37 -04:00
|
|
|
on_prepare = ":ts_on_prepare",
|
|
|
|
server = "//src:devserver",
|
|
|
|
deps = [":e2e"],
|
|
|
|
)
|
|
|
|
|
|
|
|
protractor_web_test_suite(
|
|
|
|
name = "prodserver_test",
|
|
|
|
configuration = "//:protractor.conf.js",
|
2018-10-04 16:14:14 -04:00
|
|
|
data = [
|
2018-10-16 16:20:00 -04:00
|
|
|
"@npm//@angular/bazel",
|
2018-10-04 16:14:14 -04:00
|
|
|
"@npm//protractor",
|
|
|
|
],
|
2018-07-06 17:51:37 -04:00
|
|
|
on_prepare = ":ts_on_prepare",
|
|
|
|
server = "//src:prodserver",
|
|
|
|
deps = [":e2e"],
|
2018-05-29 18:35:48 -04:00
|
|
|
)
|