build: run tree benchmark tests with bazel (#28568)

PR Close #28568
This commit is contained in:
Paul Gschwendtner
2019-02-06 18:03:58 +01:00
committed by Miško Hevery
parent 95bb72d322
commit 018507fa02
22 changed files with 241 additions and 318 deletions

View File

@ -0,0 +1,24 @@
load("//packages/bazel:index.bzl", "protractor_web_test_suite")
"""
Macro that can be used to define a benchmark test. This differentiates from
a normal Protractor test suite because we specify a custom "perf" configuration
that sets up "@angular/benchpress".
"""
def benchmark_test(name, server, deps, tags = []):
protractor_web_test_suite(
name = name,
configuration = "//:protractor-perf.conf.js",
data = [
"//packages/bazel/src/protractor/utils",
"//packages/benchpress",
],
on_prepare = "//modules/benchmarks:start-server.js",
server = server,
tags = tags,
deps = [
"@ngdeps//protractor",
"@ngdeps//yargs",
] + deps,
)