Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Some unit tests for the cli #45

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
rtfpessoa merged 15 commits into rtfpessoa:master from whyboris:unit-testing
Feb 10, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
nyc instead of istanbul
  • Loading branch information
whyboris committed Feb 8, 2019
commit bfbee97c76a84fb6ced5044f4d7e550299d2bff6
1 change: 1 addition & 0 deletions .circleci/config.yml
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
- ./node_modules
- run: npm run coverage
- run: npm run check-coverage
- run: npm run report

build-latest: &latest-build
docker:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ node_modules/
npm-debug.log
yarn-error.log

# Istanbul
# NYC
coverage/
.nyc_output/

# Bower
bower_components/
8 changes: 5 additions & 3 deletions package.json
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@
"scripts": {
"lint": "eslint .",
"style": "yarn run lint",
"coverage": "istanbul cover _mocha -- -u exports -R spec ./test/**/*",
"check-coverage": "istanbul check-coverage --statements 40 --functions 40 --branches 0 --lines 40 ./coverage/coverage.json",
"test": "yarn run coverage",
"coverage": "nyc mocha",
"coverage-html": "nyc report --reporter=html && open ./coverage/index.html",
"check-coverage": "nyc check-coverage --statements 40 --functions 40 --branches 0 --lines 40",
"report": "nyc report",
"codacy": "cat ./coverage/lcov.info | codacy-coverage",
"preversion": "yarn run test",
"postversion": "git push && git push --tags"
Expand All @@ -62,7 +64,7 @@
"eslint": "^4.19.1",
"eslint-plugin-promise": "^3.8.0",
"eslint-plugin-standard": "^3.1.0",
"istanbul": "^0.4.5",
"nyc": "^13.2.0",
"mocha": "^5.2.0",
"sinon": "^7.2.3"
},
Expand Down
Loading

AltStyle によって変換されたページ (->オリジナル) /