From 9690e36f78543d73fb700ba43ce2d53f95e8509a Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Tue, 12 Feb 2019 19:23:53 +0100 Subject: [PATCH] build: update instructions to run benchmark tests (#28697) * Updates the instructions on how to run the benchmark tests. * Removes the unused `favicon.ico` file and the corresponding Bazel filegroup PR Close #28697 --- modules/benchmarks/BUILD.bazel | 7 ------ modules/benchmarks/README.md | 40 ++++++++++----------------------- modules/benchmarks/favicon.ico | Bin 5430 -> 0 bytes 3 files changed, 12 insertions(+), 35 deletions(-) delete mode 100644 modules/benchmarks/favicon.ico diff --git a/modules/benchmarks/BUILD.bazel b/modules/benchmarks/BUILD.bazel index 4067818ff2..7159d1f14b 100644 --- a/modules/benchmarks/BUILD.bazel +++ b/modules/benchmarks/BUILD.bazel @@ -5,10 +5,3 @@ exports_files([ "tsconfig-e2e.json", "start-server.js", ]) - -filegroup( - name = "favicon", - srcs = [ - "favicon.ico", - ], -) diff --git a/modules/benchmarks/README.md b/modules/benchmarks/README.md index bc8a8ccf98..2acb18b650 100644 --- a/modules/benchmarks/README.md +++ b/modules/benchmarks/README.md @@ -3,39 +3,23 @@ ## Run in the browser ```bash -# Build the Angular packages. -yarn tsc -p packages/ +yarn bazel run modules/benchmarks/src/tree/{name}:devserver -# Build the e2e tests which are part of the "modules/" -./modules/build.sh - -# Start server that serves all benchmark e2e apps. -yarn gulp serve -``` - -Now you can open benchmark e2e apps using their appropriate URLs. For example: - -``` -http://localhost:8000/all/benchmarks/src/tree/ng2/index.html +# e.g. "ng2" tree benchmark: +yarn bazel run modules/benchmarks/src/tree/ng2:devserver ``` ## Run e2e tests -$ export NODE_PATH=$(pwd)/dist/all:$(pwd)/dist/tools -$ ./node_modules/.bin/protractor protractor-e2e.conf.js --specs=dist/all/benchmarks/e2e_test/tree_spec.js -Options for protractor with `protractor-e2e.conf.js`: -- `--bundles=true`: use prebuilt bundles -- `--ng-help`: show all available options +``` +# Run e2e tests of individual applications: +yarn bazel test modules/benchmarks/src/tree/ng2/... -## Run benchmarks tests -$ export NODE_PATH=$(pwd)/dist/all:$(pwd)/dist/tools -$ ./node_modules/.bin/protractor protractor-perf.conf.js --specs=dist/all/benchmarks/e2e_test/tree_perf.js +# Run all e2e tests: +yarn bazel test modules/benchmarks/... +``` -Options for protractor with `protractor-perf.conf.js`: -- `--bundles=true`: use prebuilt bundles -- `--ng-help`: show all available options +## Use of *_aot.ts files -## Compile *_aot.ts files - -These files are compiled as part of the compiler_cli integration tests. -See `@angular/compile_cli/integrationtest/tsconfig.json` +The `*_aot.ts` files are used as entry-points within Google to run the benchmark +tests. These are still built as part of the corresponding `ng_module` rule. diff --git a/modules/benchmarks/favicon.ico b/modules/benchmarks/favicon.ico deleted file mode 100644 index 8081c7ceaf2be08bf59010158c586170d9d2d517..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5430 zcmc(je{54#6vvCoAI3i*G5%$U7!sA3wtMZ$fH6V9C`=eXGJb@R1%(I_{vnZtpD{6n z5Pl{DmxzBDbrB>}`90e12m8T*36WoeDLA&SD_hw{H^wM!cl_RWcVA!I+x87ee975; z@4kD^=bYPn&pmG@(+JZ`rqQEKxW<}RzhW}I!|ulN=fmjVi@x{p$cC`)5$a!)X&U+blKNvN5tg=uLvuLnuqRM;Yc*swiexsoh#XPNu{9F#c`G zQLe{yWA(Y6(;>y|-efAy11k<09(@Oo1B2@0`PtZSkqK&${ zgEY}`W@t{%?9u5rF?}Y7OL{338l*JY#P!%MVQY@oqnItpZ}?s z!r?*kwuR{A@jg2Chlf0^{q*>8n5Ir~YWf*wmsh7B5&EpHfd5@xVaj&gqsdui^spyL zB|kUoblGoO7G(MuKTfa9?pGH0@QP^b#!lM1yHWLh*2iq#`C1TdrnO-d#?Oh@XV2HK zKA{`eo{--^K&MW66Lgsktfvn#cCAc*(}qsfhrvOjMGLE?`dHVipu1J3Kgr%g?cNa8 z)pkmC8DGH~fG+dlrp(5^-QBeEvkOvv#q7MBVLtm2oD^$lJZx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