Skip to content

Commit b1790e6

Browse files
filipesilvahansl
authored andcommitted
docs: update changelog with code coverage breaking changes (#4587)
#4560 notes were not included.
1 parent a127cad commit b1790e6

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,32 @@ Special thanks to: [Andrew Seguin](https://github.com/andrewseguin), [Bram Borgg
5555
* @angular/cli: The deploy command is being removed from the core of the CLI.
5656
There are several options for deploying CLI-based applications outside the scope of this project.
5757
One of which being https://github.com/angular-buch/angular-cli-ghpages
58+
* @angular/cli: The default LCOV file is now `coverage/lcov.info` instead of `coverage/coverage.lcov`.
59+
* @angular/cli:`ng test --code-coverage` now uses `karma-coverage-istanbul-reporter` instead of `karma-remap-istanbul`.
60+
61+
To update follow these steps in your project:
62+
- `npm uninstall karma-remap-istanbul --save-dev`
63+
- `npm install karma-coverage-istanbul-reporter --save-dev`
64+
65+
Then copy `karma.conf.js` from a new project, or update it manually:
66+
- replace `require('karma-remap-istanbul'),` with `require('karma-coverage-istanbul-reporter'),`
67+
- replace `['progress', 'karma-remap-istanbul']` with `['progress', 'coverage-istanbul']`
68+
- replace
69+
```
70+
remapIstanbulReporter: {
71+
reports: {
72+
html: 'coverage',
73+
lcovonly: './coverage/coverage.lcov'
74+
}
75+
},
76+
```
77+
with
78+
```
79+
coverageIstanbulReporter: {
80+
reports: [ 'html', 'lcovonly' ],
81+
fixWebpackSourcePaths: true
82+
},
83+
```
5884

5985

6086

0 commit comments

Comments
 (0)