From 7946fecbeb69566bd560984dafb395c9f42f8447 Mon Sep 17 00:00:00 2001 From: Ottavio Hartman Date: Tue, 20 Jun 2017 13:24:03 -0400 Subject: [PATCH] Replace Istanbul with NYC --- .gitignore | 1 + README.md | 2 +- gulpfile.js | 6 +++--- package.json | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 8e46cf7..6e76bb2 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ doc output test *.tgz +.nyc_output diff --git a/README.md b/README.md index 0d9e3cd..7b5e786 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ npm run eslint-watch ## Running Test Coverage -Coverage uses [istanbul](https://github.com/gotwarlost/istanbul). Run: +Coverage uses [nyc](https://github.com/istanbuljs/nyc). Run: ``` npm run coverage ``` diff --git a/gulpfile.js b/gulpfile.js index 01c8b5c..2cfbded 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -70,9 +70,9 @@ gulp.task('test-watch', function () { gulp.task('coverage', function () { fsExtra.removeSync('coverage/server'); - child_process.execSync('istanbul' + - ' cover' + - ' --include-all-sources' + + child_process.execSync('nyc' + + ' --all' + + ' --reporter=lcov' + ' --dir coverage' + ' -x "specs/**" -x "coverage/**" -x "doc/**" -x "bin/**" -x "index.js" -x "gulpfile.js"' + ' node_modules/jasmine/bin/jasmine.js' + diff --git a/package.json b/package.json index f7dd61e..b091061 100644 --- a/package.json +++ b/package.json @@ -41,10 +41,10 @@ "eslint-config-cesium": "^1.0.0", "gulp": "^3.9.1", "gulp-eslint": "^4.0.0", - "istanbul": "^0.4.5", "jasmine": "^2.5.3", "jasmine-spec-reporter": "^4.1.0", "jsdoc": "^3.4.3", + "nyc": "^11.0.2", "open": "^0.0.5", "requirejs": "^2.3.3" },