Closed
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 x64 (Windows 7 Enterprise)
Repro steps.
ng new coverage-test
npm install --save-dev karma-teamcity-reporter
- Add
require('karma-teamcity-reporter')
to list of plugins inkarma.conf.js
ng test --single-run --code-coverage --reporters teamcity
- the tests run with TeamCity reporting as expected.ls coverage
- the coverage folder is missing.- Try again with a different reporter:
ng test --single-run --code-coverage --reporters progress
- same result, tests pass but there is no coverage report. - Try again with no reporter:
ng test --single-run --code-coverage
- works as expected and generates a coverage report.
The log given by the failure.
No error messages displayed. It just silently fails to produce a coverage report.
Desired functionality.
When 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.
At 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.
Mention any other details that might be useful.
I asked a question about this on Stack Overflow but got no replies.