Skip to content

Commit

Permalink
Switch to use NYC for coverage as it replaces Istanbul CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
i-like-robots committed Apr 4, 2017
1 parent 75de177 commit c2ef18c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/node*
/public/
*.env*
/.haikro-cache
.eslintrc.js
.editorconfig
/.idea
/coverage
/.nyc_output/
10 changes: 4 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@ unit-test:
export AWS_SIGNED_FETCH_DISABLE_DNS_RESOLUTION=true; \
mocha 'test/spec/**/*-spec.js'

unit-test-coverage:
nyc --reporter=$(if $(CIRCLECI),lcovonly,lcov) make unit-test

test:
make verify

ifeq ($(CIRCLECI),true)
make coverage-report && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls
make unit-test-coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls
else
make unit-test
endif

coverage-report:
export NODE_ENV=test; \
export AWS_SIGNED_FETCH_DISABLE_DNS_RESOLUTION=true; \
istanbul cover --report lcovonly ./node_modules/.bin/_mocha -- 'test/spec/**/*-spec.js'
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"chai": "^3.5.0",
"coveralls": "^2.13.0",
"eslint": "^3.18.0",
"istanbul": "^0.4.5",
"lintspaces-cli": "^0.6.0",
"mocha": "^3.2.0",
"nock": "^9.0.11"
"nock": "^9.0.11",
"nyc": "^10.2.0"
}
}

0 comments on commit c2ef18c

Please sign in to comment.