
Rename bazel workspace from npm_dev_infra to npm_angular_dev_infra_private to make it clear that this package is private to angular. Change driver-utilities module_name to match the new bazel workspace name. Correct a comment by rewording it from "deployed version" to "published version". Fix merge conflicts in tmpl-package.json Make "//packages/bazel/src:esm5.bzl" replacement more generalized so that importing from "//packages/bazel" works. Deleted "dev_infra/*" path from modules/benchmarks tsconfig. Moved //dev-infra/benchmark/browsers to //dev-infra/browsers. PR Close #36800
28 lines
975 B
Python
28 lines
975 B
Python
load("@npm_bazel_protractor//: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". Benchmark test targets will not run on CI
|
|
unless explicitly requested.
|
|
"""
|
|
|
|
def benchmark_test(name, server, tags = [], **kwargs):
|
|
protractor_web_test_suite(
|
|
name = name,
|
|
browsers = ["//dev-infra/browsers:chromium"],
|
|
configuration = "//dev-infra/benchmark/component_benchmark:protractor-perf.conf.js",
|
|
on_prepare = "//dev-infra/benchmark/component_benchmark:start-server.js",
|
|
server = server,
|
|
# Benchmark targets should not run on CI by default.
|
|
tags = tags + [
|
|
"manual",
|
|
"no-remote-exec",
|
|
],
|
|
test_suite_tags = [
|
|
"manual",
|
|
"no-remote-exec",
|
|
],
|
|
**kwargs
|
|
)
|