Skip to content

Commit

Permalink
Replace istanbul with nyc
Browse files Browse the repository at this point in the history
Change-Id: I1161cf3e61d2269d81d62ff0121022d08577f954
  • Loading branch information
Petr Pchelko authored and d00rman committed Feb 15, 2019
1 parent 9017d8b commit aeef90a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.git
coverage
node_modules
.nyc_output
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ db.sqlite3

# uri dumps
uri_dump

# nyc
.nyc_output
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,13 @@
"eslint-config-wikimedia": "^0.10.0",
"eslint-plugin-jsdoc": "^3.9.1",
"eslint-plugin-json": "^1.2.1",
"istanbul": "^0.4.5",
"eslint": "^4.19.0",
"js-yaml": "^3.12.0",
"mocha": "^3.4.2",
"mocha-lcov-reporter": "^1.3.0",
"mocha.parallel": "^0.15.6",
"nock": "^9.0.13",
"nyc": "^13.2.0",
"preq": "^0.5.7",
"restbase-mod-table-sqlite": "^1.1.1"
},
Expand Down
4 changes: 2 additions & 2 deletions test/utils/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

mod_dir=$( cd "$( dirname "$0" )"/../.. && pwd )/node_modules
mocha="$mod_dir"/mocha/bin/mocha
istanbul="$mod_dir"/istanbul/lib/cli.js
nyc="$mod_dir"/.bin/nyc

runTest ( ) {
if [ "$1" = "cassandra" ]; then
Expand All @@ -25,7 +25,7 @@ runTest ( ) {
if [ "$2" = "test" ]; then
"${mocha}"
elif [ "$2" = "coverage" ]; then
"${istanbul}" cover node_modules/.bin/_mocha -- -R spec
"${nyc}" --reporter=lcov node_modules/.bin/_mocha
fi
}

Expand Down

0 comments on commit aeef90a

Please sign in to comment.