Skip to content

Commit

Permalink
Merge pull request #2322 from akshita31/istanbul_report
Browse files Browse the repository at this point in the history
Remove istanbul-combine
  • Loading branch information
akshita31 authored May 18, 2018
2 parents 4c35ca5 + 4692387 commit 9487d98
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 192 deletions.
179 changes: 0 additions & 179 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@
"gulp-mocha": "5.0.0",
"gulp-tslint": "8.1.3",
"istanbul": "0.4.5",
"istanbul-combine": "0.3.0",
"ltcdr": "2.2.1",
"minimist": "1.2.0",
"mocha": "5.0.4",
Expand Down
24 changes: 13 additions & 11 deletions tasks/coverageTasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import * as gulp from 'gulp';
import * as path from 'path';
import * as del from 'del';
import spawnNode from './spawnNode';
import { coverageRootPath, nycOutputPath, nycPath, codeExtensionSourcesPath, integrationTestCoverageRootPath, integrationTestNycOutputPath, istanbulCombinePath, codecovPath, unitTestCoverageRootPath } from './projectPaths';
import { coverageRootPath, nycOutputPath, nycPath, codeExtensionSourcesPath, integrationTestCoverageRootPath, integrationTestNycOutputPath, istanbulPath, codecovPath, unitTestCoverageRootPath } from './projectPaths';

gulp.task("cov:instrument", async () => {
del(coverageRootPath);
Expand All @@ -29,25 +29,27 @@ gulp.task("cov:instrument", async () => {

gulp.task("cov:merge", async () => {
return spawnNode([
istanbulCombinePath,
'-d',
istanbulPath,
'report',
'--dir',
integrationTestCoverageRootPath,
'-r',
'lcovonly',
`${integrationTestNycOutputPath}/*.json`
'--include',
`${integrationTestNycOutputPath}/*.json`,
'lcovonly'
], {
cwd: codeExtensionSourcesPath
});
});

gulp.task("cov:merge-html", async () => {
return spawnNode([
istanbulCombinePath,
'-d',
istanbulPath,
'report',
'--dir',
integrationTestCoverageRootPath,
'-r',
'html',
`${integrationTestNycOutputPath}/*.json`
'--include',
`${integrationTestNycOutputPath}/*.json`,
'html'
], {
cwd: codeExtensionSourcesPath
});
Expand Down
2 changes: 1 addition & 1 deletion tasks/projectPaths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const nodeModulesPath = path.join(rootPath, 'node_modules');
export const vscePath = path.join(nodeModulesPath, 'vsce', 'out', 'vsce');
export const nycPath = path.join(nodeModulesPath, 'nyc', 'bin', 'nyc.js');
export const mochaPath = path.join(nodeModulesPath, 'mocha', 'bin', 'mocha');
export const istanbulCombinePath = path.join(nodeModulesPath, 'istanbul-combine', 'cli.js');
export const istanbulPath = path.join(nodeModulesPath, 'istanbul', 'lib', 'cli.js');
export const codecovPath = path.join(nodeModulesPath, 'codecov', 'bin', 'codecov');
export const vscodeTestHostPath = path.join(nodeModulesPath, 'vscode', 'bin', 'test');

Expand Down

0 comments on commit 9487d98

Please sign in to comment.