Skip to content

Commit

Permalink
feat: cov support output json-summary (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
atian25 authored and fengmk2 committed Jun 19, 2017
1 parent c86fab9 commit c1de734
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/cmd/cov.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ class CovCommand extends Command {
'report',
'--root', coverageDir,
'text-summary',
'json-summary',
'json',
'lcov',
];
Expand Down
1 change: 1 addition & 0 deletions test/lib/cmd/cov.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ describe('test/lib/cmd/cov.test.js', () => {
.end(err => {
assert.ifError(err);
assert.ok(fs.existsSync(path.join(cwd, 'coverage/coverage-final.json')));
assert.ok(fs.existsSync(path.join(cwd, 'coverage/coverage-summary.json')));
assert.ok(fs.existsSync(path.join(cwd, 'coverage/lcov-report/index.html')));
assert.ok(fs.existsSync(path.join(cwd, 'coverage/lcov.info')));
assert.ok(!fs.existsSync(path.join(cwd, '.tmp')));
Expand Down

0 comments on commit c1de734

Please sign in to comment.