test: disambiguate e2e and perf spec files (#34753)

Currently, based on the file names it's not quite clear whether
a given `.spec.ts` file runs benchmark perf or benchmark e2e
functionality tests. To disambiguate these, we use new file
suffixs. i.e. `e2e-spec.ts` and `perf-spec.ts`.

PR Close #34753
This commit is contained in:
Paul Gschwendtner 2020-01-16 12:23:36 +01:00 committed by Andrew Kushnir
parent 4d88b4bc26
commit 9c55fc0f13
17 changed files with 14 additions and 14 deletions

View File

@ -7,7 +7,7 @@ ng_module(
name = "application_lib",
srcs = glob(
["**/*.ts"],
exclude = ["**/*.spec.ts"],
exclude = ["**/*.perf-spec.ts"],
),
generate_ve_shims = True,
deps = [
@ -22,7 +22,7 @@ ng_module(
ts_library(
name = "perf_lib",
testonly = 1,
srcs = ["benchmark_perf.spec.ts"],
srcs = ["class_bindings.perf-spec.ts"],
deps = [
"//modules/e2e_util",
"@npm//protractor",

View File

@ -9,7 +9,7 @@
import {$, browser} from 'protractor';
import {runBenchmark} from '../../../e2e_util/perf_util';
describe('benchmarks', () => {
describe('class bindings perf', () => {
it('should work for update', done => {
browser.rootEl = '#root';

View File

@ -7,7 +7,7 @@ ng_module(
name = "application_lib",
srcs = glob(
["**/*.ts"],
exclude = ["**/*.spec.ts"],
exclude = ["**/*.perf-spec.ts"],
),
generate_ve_shims = True,
deps = [
@ -23,7 +23,7 @@ ng_module(
ts_library(
name = "perf_lib",
testonly = 1,
srcs = ["benchmark_perf.spec.ts"],
srcs = ["expanding_rows.perf-spec.ts"],
deps = [
"//modules/e2e_util",
"@npm//protractor",

View File

@ -5,7 +5,7 @@ package(default_visibility = ["//visibility:public"])
ts_library(
name = "perf_lib",
testonly = True,
srcs = ["perf.spec.ts"],
srcs = ["js-web-frameworks.perf-spec.ts"],
deps = [
"//modules/e2e_util",
"@npm//protractor",

View File

@ -5,7 +5,7 @@ load("//tools:defaults.bzl", "ts_library")
ts_library(
name = "perf_tests_lib",
testonly = 1,
srcs = ["largeform_perf.spec.ts"],
srcs = ["largeform.perf-spec.ts"],
tsconfig = "//modules/benchmarks:tsconfig-e2e.json",
deps = [
"//modules/e2e_util",
@ -16,7 +16,7 @@ ts_library(
ts_library(
name = "e2e_tests_lib",
testonly = 1,
srcs = ["largeform.spec.ts"],
srcs = ["largeform.e2e-spec.ts"],
tsconfig = "//modules/benchmarks:tsconfig-e2e.json",
deps = [
"//modules/e2e_util",

View File

@ -11,7 +11,7 @@ ts_library(
ts_library(
name = "perf_tests_lib",
testonly = 1,
srcs = ["largetable_perf.spec.ts"],
srcs = ["largetable.perf-spec.ts"],
deps = [
"//modules/e2e_util",
"@npm//protractor",
@ -21,7 +21,7 @@ ts_library(
ts_library(
name = "e2e_tests_lib",
testonly = 1,
srcs = ["largetable.spec.ts"],
srcs = ["largetable.e2e-spec.ts"],
tsconfig = "//modules/benchmarks:tsconfig-e2e.json",
deps = [
"//modules/e2e_util",

View File

@ -21,7 +21,7 @@ ts_library(
ts_library(
name = "perf_tests_lib",
testonly = 1,
srcs = ["tree_perf.spec.ts"],
srcs = ["tree.perf-spec.ts"],
deps = [
":test_utils_lib",
"@npm//protractor",
@ -31,7 +31,7 @@ ts_library(
ts_library(
name = "e2e_tests_lib",
testonly = 1,
srcs = ["tree.spec.ts"],
srcs = ["tree.e2e-spec.ts"],
deps = [
":test_utils_lib",
"@npm//protractor",
@ -41,7 +41,7 @@ ts_library(
ts_library(
name = "detect_changes_perf_tests_lib",
testonly = 1,
srcs = ["tree_perf_detect_changes.spec.ts"],
srcs = ["tree_detect_changes.perf-spec.ts"],
deps = [
":test_utils_lib",
"@npm//protractor",
@ -51,7 +51,7 @@ ts_library(
ts_library(
name = "detect_changes_e2e_tests_lib",
testonly = 1,
srcs = ["tree_detect_changes.spec.ts"],
srcs = ["tree_detect_changes.e2e-spec.ts"],
deps = [
":test_utils_lib",
"@npm//protractor",