Title: Compilation errors don't cause non-zero exit codes in ng test · Issue #2778 · angular/angular-cli · GitHub
Open Graph Title: Compilation errors don't cause non-zero exit codes in ng test · Issue #2778 · angular/angular-cli
X Title: Compilation errors don't cause non-zero exit codes in ng test · Issue #2778 · angular/angular-cli
Description: Please provide us with the following information: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) OS X El Capitan Versions. Please run ng --version. If there's nothing outputted, please run in a Termin...
Open Graph Description: Please provide us with the following information: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) OS X El Capitan Versions. Please run ng --version. If there's n...
X Description: Please provide us with the following information: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) OS X El Capitan Versions. Please run ng --version. If there'...
Opengraph URL: https://github.com/angular/angular-cli/issues/2778
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Compilation errors don't cause non-zero exit codes in ng test ","articleBody":"> ## Please provide us with the following information:\n### OS?\n\n> Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)\n> OS X El Capitan\n### Versions.\n\n> Please run `ng --version`. If there's nothing outputted, please run in a Terminal: `node --version` and paste the result here:\n> \n> ```\n> angular-cli: 1.0.0-beta.17\n> node: 6.3.0\n> os: darwin x64\n> ```\n> ### Repro steps.\n> \n> Was this an app that wasn't created using the CLI? What change did you do on your code? etc.\n> Create a angular cli project, create a compilation error in a spec file that doesn't fail at runtime (e.g. omit constructor parameter) and run `ng test`\n### The log given by the failure.\n\n> Normally this include a stack trace and some more information.\n\nFor example, this output of a test run of `ng test`:\n\n```\nERROR in [default] /Users/jr/dev/console/console/src/app/context/context.service.spec.ts:17:12 \nSupplied parameters do not match any signature of call target.\n\nERROR in [default] /Users/jr/dev/console/console/src/app/context/location.spec.ts:8:11 \nSupplied parameters do not match any signature of call target.\n19 10 2016 14:05:24.377:INFO [karma]: Karma v1.2.0 server started at http://localhost:9876/\n19 10 2016 14:05:24.380:INFO [launcher]: Launching browser Chrome with unlimited concurrency\n19 10 2016 14:05:24.511:INFO [launcher]: Starting browser Chrome\n19 10 2016 14:05:25.882:INFO [Chrome 53.0.2785 (Mac OS X 10.11.6)]: Connected on socket /#pLo6aNiQB7OJVlxvAAAA with id 31332214\nChrome 53.0.2785 (Mac OS X 10.11.6): Executed 10 of 10 SUCCESS (0.77 secs / 0.754 secs)\niDevBook01:console jr$ $?\n-bash: 0: command not found\n```\n### Mention any other details that might be useful.\n\nIt would be useful if angular-cli captured the error code when compiling typescript code and failed early. `ng build` doesn't build tests, so it's not useful either. \n\n> ---\n> \n> Thanks! We'll be in touch soon.\n","author":{"url":"https://github.com/JohannesRudolph","@type":"Person","name":"JohannesRudolph"},"datePublished":"2016-10-19T12:15:22Z","url":"https://github.com/angular/angular-cli/issues/2778"}
| 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:a2438a79-901e-565a-4ce3-26d93db1b456 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C81A:110357:1A3E76:223C21:6B02368F |
| html-safe-nonce | a9a530bb4155b8bcf10eb8126b2ca2625f9f26a2c02f92a8e01060aca101f35f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODFBOjExMDM1NzoxQTNFNzY6MjIzQzIxOjZCMDIzNjhGIiwidmlzaXRvcl9pZCI6IjE0NzM4MzgzNjE3OTI4ODY0MTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4e23ec4034257e544d5afcaba41686632ba29dd68b6222f2f1fd8ba7d97a9ca1 |
| hovercard-subject-tag | issue:183945051 |
| 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/2778/issue_layout |
| twitter:image | https://opengraph.githubassets.com/be554bc0956a4ba183cb5a3c8e25aaba4ec9c4b7291da95a16b36c82649773fc/angular/angular-cli/issues/2778 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/be554bc0956a4ba183cb5a3c8e25aaba4ec9c4b7291da95a16b36c82649773fc/angular/angular-cli/issues/2778 |
| og:image:alt | Please provide us with the following information: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) OS X El Capitan Versions. Please run ng --version. If there's n... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JohannesRudolph |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width