Title: ng test much slower than ng build/serve · Issue #5334 · angular/angular-cli · GitHub
Open Graph Title: ng test much slower than ng build/serve · Issue #5334 · angular/angular-cli
X Title: ng test much slower than ng build/serve · Issue #5334 · angular/angular-cli
Description: OS? Linux (Ubuntu 16.04) Versions. @angular/cli: 1.0.0-rc.1 node: 6.10.0 os: linux x64 @angular/common: 2.4.9 @angular/compiler: 2.4.9 @angular/core: 2.4.9 @angular/forms: 2.4.9 @angular/http: 2.4.9 @angular/platform-browser: 2.4.9 @angu...
Open Graph Description: OS? Linux (Ubuntu 16.04) Versions. @angular/cli: 1.0.0-rc.1 node: 6.10.0 os: linux x64 @angular/common: 2.4.9 @angular/compiler: 2.4.9 @angular/core: 2.4.9 @angular/forms: 2.4.9 @angular/http: 2.4....
X Description: OS? Linux (Ubuntu 16.04) Versions. @angular/cli: 1.0.0-rc.1 node: 6.10.0 os: linux x64 @angular/common: 2.4.9 @angular/compiler: 2.4.9 @angular/core: 2.4.9 @angular/forms: 2.4.9 @angular/http: 2.4....
Opengraph URL: https://github.com/angular/angular-cli/issues/5334
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ng test much slower than ng build/serve","articleBody":"### OS?\r\nLinux (Ubuntu 16.04)\r\n\r\n### Versions.\r\n@angular/cli: 1.0.0-rc.1\r\nnode: 6.10.0\r\nos: linux x64\r\n@angular/common: 2.4.9\r\n@angular/compiler: 2.4.9\r\n@angular/core: 2.4.9\r\n@angular/forms: 2.4.9\r\n@angular/http: 2.4.9\r\n@angular/platform-browser: 2.4.9\r\n@angular/platform-browser-dynamic: 2.4.9\r\n@angular/router: 3.4.9\r\n@angular/cli: 1.0.0-rc.1\r\n@angular/compiler-cli: 2.4.9\r\n\r\n### Repro steps.\r\n`ng test` is much slower than `ng build` and `ng serve` on both first build (60s vs 20s), and on retriggered builds (20s vs 1s).\r\n\r\nIt's spending alot of time on `chunk asset optimization`, so this looks like the previous problems with build performance discussed in #1980. Is it the same problem, and the fix for build and serve hasn't been implemented in test yet?\r\n\r\nAlso `ng test` seems to build the entire app-folder even though my tests are confined to pure functions in spec-files. This seems to go against what's defined in `test.js`, where only spec.ts-files are gathered. I've tried running `ng test --build false`, but it doesn't make a difference.\r\n\r\n### Mention any other details that might be useful.\r\n\r\nIf I run `ng test --sourcemap false` I get comparable performance, but this is puzzling to since build/serve runs with sourcemaps enabled...","author":{"url":"https://github.com/tmansson","@type":"Person","name":"tmansson"},"datePublished":"2017-03-09T14:07:58Z","url":"https://github.com/angular/angular-cli/issues/5334"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b43b377d-d728-9d5c-e3df-84b7119ce800 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A614:E9D16:264C706:309B40E:6B01C7CD |
| html-safe-nonce | c6c7f04dd121569589eeea6b576a16244adbabe1db5fa1ceb268e100eeefb160 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjE0OkU5RDE2OjI2NEM3MDY6MzA5QjQwRTo2QjAxQzdDRCIsInZpc2l0b3JfaWQiOiIxNjU3NjcxMDQ5NDg1MDc2NDI5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3535aadd83fad6cbed7d287d41a325972fe86264293ba8479f3c39a1446c32b7 |
| hovercard-subject-tag | issue:213047252 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/5334/issue_layout |
| twitter:image | https://opengraph.githubassets.com/18be6b63fa9279e85b5e852f81a58f9725af2282feb54db0c0b228b9775da0a7/angular/angular-cli/issues/5334 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/18be6b63fa9279e85b5e852f81a58f9725af2282feb54db0c0b228b9775da0a7/angular/angular-cli/issues/5334 |
| og:image:alt | OS? Linux (Ubuntu 16.04) Versions. @angular/cli: 1.0.0-rc.1 node: 6.10.0 os: linux x64 @angular/common: 2.4.9 @angular/compiler: 2.4.9 @angular/core: 2.4.9 @angular/forms: 2.4.9 @angular/http: 2.4.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tmansson |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width