Title: "ng test" - no code coverage report if --code-coverage and --reporters options used together · Issue #5685 · angular/angular-cli · GitHub
Open Graph Title: "ng test" - no code coverage report if --code-coverage and --reporters options used together · Issue #5685 · angular/angular-cli
X Title: "ng test" - no code coverage report if --code-coverage and --reporters options used together · Issue #5685 · angular/angular-cli
Description: Bug Report or Feature Request (mark with an x) - [X] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.0.0 (Problem was first discovered using version 1.0.0.rc1) node: 6.9.4 os: win32 x6...
Open Graph Description: Bug Report or Feature Request (mark with an x) - [X] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.0.0 (Problem was first discovered using ver...
X Description: Bug Report or Feature Request (mark with an x) - [X] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.0.0 (Problem was first discovered using ...
Opengraph URL: https://github.com/angular/angular-cli/issues/5685
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"ng test\" - no code coverage report if --code-coverage and --reporters options used together","articleBody":"\u003c!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION YOUR ISSUE MIGHT BE CLOSED WITHOUT INVESTIGATING\r\n-->\r\n### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [X] bug report -> please search issues before submitting\r\n- [ ] feature request\r\n```\r\n\r\n### Versions.\r\n\u003c!--\r\nOutput from: `ng --version`.\r\nIf nothing, output from: `node --version` and `npm --version`.\r\n Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?)\r\n-->\r\n@angular/cli: 1.0.0 (Problem was first discovered using version 1.0.0.rc1)\r\nnode: 6.9.4\r\nos: win32 x64 (Windows 7 Enterprise)\r\n\r\n### Repro steps.\r\n\u003c!--\r\nSimple steps to reproduce this bug.\r\nPlease include: commands run, packages added, related code changes.\r\nA link to a sample repo would help too.\r\n-->\r\n1. `ng new coverage-test`\r\n2. `npm install --save-dev karma-teamcity-reporter`\r\n3. Add `require('karma-teamcity-reporter')` to list of plugins in `karma.conf.js`\r\n4. `ng test --single-run --code-coverage --reporters teamcity` - *the tests run with TeamCity reporting as expected.*\r\n5. `ls coverage` - *the coverage folder is missing.*\r\n6. Try again with a different reporter: `ng test --single-run --code-coverage --reporters progress` - *same result, tests pass but there is no coverage report.*\r\n7. Try again with no reporter: `ng test --single-run --code-coverage` - *works as expected and generates a coverage report.*\r\n\r\n### The log given by the failure.\r\n\u003c!-- Normally this include a stack trace and some more information. -->\r\nNo error messages displayed. It just silently fails to produce a coverage report.\r\n\r\n### Desired functionality.\r\n\u003c!--\r\nWhat would like to see implemented?\r\nWhat is the usecase?\r\n-->\r\nWhen running the unit tests on a TeamCity build server, I want to get both a test results summary in TeamCity and a code coverage report.\r\n\r\nAt present I can only do this by running the tests twice: first with `--reporters teamcity` to get the results summary, and then again with `--code-coverage` but no TeamCity reporting.\r\n\r\n### Mention any other details that might be useful.\r\n\u003c!-- Please include a link to the repo if this is related to an OSS project. -->\r\nI asked [a question about this on Stack Overflow](https://stackoverflow.com/questions/42958455/ng-test-cant-do-coverage-report-and-teamcity-reporting-at-the-same-time) but got no replies.\r\n","author":{"url":"https://github.com/alistairmgreen","@type":"Person","name":"alistairmgreen"},"datePublished":"2017-03-27T10:05:16Z","url":"https://github.com/angular/angular-cli/issues/5685"}
| 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:c55424ca-1bfe-97b1-d147-0309a9d7a439 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E0F2:FC5BE:2B9FABC:39F8065:6B01C5DA |
| html-safe-nonce | aebbf87194b7962831b94ca2481438b19bc0d4d00e285b72cf0351b5e44dddc0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEYyOkZDNUJFOjJCOUZBQkM6MzlGODA2NTo2QjAxQzVEQSIsInZpc2l0b3JfaWQiOiIzNDc5NzEwNTI3Mjk2NDU3MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d61ade0b657d9b2453cabe1578bed06445eca6e82b80b5e214236947b779e4eb |
| hovercard-subject-tag | issue:217196060 |
| 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/5685/issue_layout |
| twitter:image | https://opengraph.githubassets.com/375766927a48bae67342d480010f42de6d5ecf0f10bd268d74554c8d81a8c888/angular/angular-cli/issues/5685 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/375766927a48bae67342d480010f42de6d5ecf0f10bd268d74554c8d81a8c888/angular/angular-cli/issues/5685 |
| og:image:alt | Bug Report or Feature Request (mark with an x) - [X] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.0.0 (Problem was first discovered using ver... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alistairmgreen |
| 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