2019-11-01 14:17:10 -04:00
|
|
|
load("//tools:defaults.bzl", "protractor_web_test_suite")
|
2019-02-06 12:03:58 -05:00
|
|
|
|
|
|
|
"""
|
|
|
|
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/benchpress",
|
|
|
|
],
|
|
|
|
on_prepare = "//modules/benchmarks:start-server.js",
|
|
|
|
server = server,
|
|
|
|
tags = tags,
|
|
|
|
deps = [
|
2019-02-20 12:54:42 -05:00
|
|
|
"@npm//yargs",
|
2019-02-06 12:03:58 -05:00
|
|
|
] + deps,
|
|
|
|
)
|