Skip to content
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

test: use nyc to create code coverage report #1

Closed
wants to merge 3 commits into from

Conversation

fengmk2
Copy link

@fengmk2 fengmk2 commented Jun 3, 2017

Fix setInterval should contains args and this in callback.

@fengmk2
Copy link
Author

fengmk2 commented Jun 3, 2017

ci pass https://travis-ci.org/fengmk2/safe-timers/builds/238990355

@@ -3,11 +3,16 @@
"version": "1.0.1",
"description": "Timers with near-infinite duration support",
"main": "index.js",
"files": [
"index.js",
"component.json"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

component.json is for GitHub installs only (it's a dead build system anyway, so perhaps it's time to remove the file altogether... but that's out of scope for this PR), so it doesn't have to be included in the NPM package.

script:
- npm run cov
after_script:
- npm i codecov && codecov
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not make codecov a dev dependency?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably because it's only relevant for reporting code coverage metrics from a CI provider like Travis. Makes sense, though I would tend to still agree with you and make it a devDependency, at least for the purposes of SemVer (i.e. not ending up using an incompatible version).

@ronkorving
Copy link
Collaborator

Thanks for the contribution! I left a few small notes in-line for you.

@ronkorving
Copy link
Collaborator

Superseded by #8

@ronkorving ronkorving closed this Oct 23, 2017
@JamesMGreene
Copy link
Contributor

Mostly superseded by #8 but not the nyc part. I can submit something for that, too, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants