Title: Test development cycle is slow unless sourcemaps are turned off · Issue #5423 · angular/angular-cli · GitHub
Open Graph Title: Test development cycle is slow unless sourcemaps are turned off · Issue #5423 · angular/angular-cli
X Title: Test development cycle is slow unless sourcemaps are turned off · Issue #5423 · angular/angular-cli
Description: CLI tool for Angular. Contribute to angular/angular-cli development by creating an account on GitHub.
Open Graph Description: CLI tool for Angular. Contribute to angular/angular-cli development by creating an account on GitHub.
X Description: CLI tool for Angular. Contribute to angular/angular-cli development by creating an account on GitHub.
Opengraph URL: https://github.com/angular/angular-cli
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Test development cycle is slow unless sourcemaps are turned off","articleBody":"The iterating unit test development is painfully slow (and appears to grow slower during a session) when running `ng test`. \r\n\r\nThe console shows re-build 92% complete and then hangs for up to a minute (it seems anyway) before finally reporting test progress and refreshing the karma browser.\r\n\r\nThe test progress reporter ticks along at a slow pace. \r\n\r\nHowever, `ng test --sourcemap=false` (turning off sourcemaps) results in crisp iterations, with rebuild times in the sub-second range.\r\n\r\nI'm describing my experience on a small app (the new Angular DocViewer) with fewer than 100 tests so far.\r\n\r\n### Bug Report or Feature Request (mark with an `x`)\r\n- [ ] bug report -> please search issues before submitting\r\n- [x] feature request\r\n\r\n\r\n### Versions.\r\n4.0.0-rc.2, \r\nOS/X, node 6.9.5, npm 4.1.2\r\n\r\n\r\n### Repro steps.\r\n1) Open a CLI project with tests.\r\n2) Develop tests in a single spec file with `ng test`, changing frequently.\r\n3) Do the same again with `ng test --sourcemap=false` (soon to be `--sourcemaps=false`\r\n\r\nCompare your experience.\r\n\r\n### Observations\r\n\r\nI believe that in the typical dev/test cycle, the programmer changes **a single test file** 80% of the time, the corresponding application file 10% of the time, and hardly anything else the remaining 10%.\r\n\r\nMy sense is that it would be wise to optimize for this workflow.","author":{"url":"https://github.com/wardbell","@type":"Person","name":"wardbell"},"datePublished":"2017-03-14T19:02:50Z","url":"https://github.com/angular/angular-cli/issues/5423"}
| 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 | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:14b12f9c-570d-b22e-3150-d30e14ffa8a1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F34:2463BD:31D8873:3FAAF3D:6B01C5E4 |
| html-safe-nonce | ad87b8bba6100fd60b98339cf5869e04513d4b82d161514a2206ae114744ce2c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjM0OjI0NjNCRDozMUQ4ODczOjNGQUFGM0Q6NkIwMUM1RTQiLCJ2aXNpdG9yX2lkIjoiMjUyMzE4NTQyODY4MTU3Mzg2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cbecfee9171288694233c4ee481535f406d170e35b615104c01419988d419e17 |
| hovercard-subject-tag | repository:36891867 |
| 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/angular/angular-cli/issues/5423 |
| twitter:image | https://repository-images.githubusercontent.com/36891867/7600907d-5c07-47a5-a7b5-80b9c8922d6c |
| twitter:card | summary_large_image |
| og:image | https://repository-images.githubusercontent.com/36891867/7600907d-5c07-47a5-a7b5-80b9c8922d6c |
| og:image:alt | CLI tool for Angular. Contribute to angular/angular-cli development by creating an account on GitHub. |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-cache |
| 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