Skip to content

Commit 4cca3a1

Browse files
alan-agius4Keen Yee Liau
authored and
Keen Yee Liau
committed
feat(@schematics/angular): add text-summary to code coverage reporters
Fixes #3602
1 parent 7f0a7ce commit 4cca3a1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/schematics/angular/application/files/root/karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = function (config) {
1717
},
1818
coverageIstanbulReporter: {
1919
dir: require('path').join(__dirname, '<%= relativePathToWorkspaceRoot %>/coverage'),
20-
reports: ['html', 'lcovonly'],
20+
reports: ['html', 'lcovonly', 'text-summary'],
2121
fixWebpackSourcePaths: true
2222
},
2323
reporters: ['progress', 'kjhtml'],

tests/legacy-cli/e2e/tests/misc/coverage.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export default function () {
1010
return;
1111

1212
return ng('test', '--watch=false', '--code-coverage')
13+
.then(output => expect(output.stdout).toContain('Coverage summary'))
1314
.then(() => expectFileToExist('coverage/src/app'))
1415
.then(() => expectFileToExist('coverage/lcov.info'))
1516
// Verify code coverage exclude work

0 commit comments

Comments
 (0)