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

adds coverage reporting using nyc and coveralls #48

Closed
wants to merge 3 commits into from

Conversation

bcoe
Copy link

@bcoe bcoe commented May 25, 2015

This pull adds test coverage, facilitated by nyc and the hosted coverage service coveralls.io.

  • run npm run coverage to get a human readable coverage report.
  • run npm run coverage -- --reporter=lcov to get an HTML report over coverage in the /coverage folder.
  • run npm run coveralls to report coverage to the coveralls.io.
    • you'll need to setup your repo on coveralls.io and grap the COVERALLS_REPO_TOKEN.
    • on travis-ci.org, you'll need to set an environment variable with the value of COVERALLS_REPO_TOKEN

@@ -25,6 +27,8 @@
},
"devDependencies": {
"bl": ">=0.9.0 <0.10.0-0",
"coveralls": "^2.11.2",
Copy link
Owner

Choose a reason for hiding this comment

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

no ^ please, ~ or explicit

Choose a reason for hiding this comment

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

@rvagg any reason? Just curious (happy if you just throw a blog link my way), wouldn't ^2.11.0 catch more fixes for [potential] bugs (assuming they follow semver)?

Copy link
Author

Choose a reason for hiding this comment

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

Hey @rvagg I'll update this shortly. @dcousens, one could argue the other side that you're more likely to get bugs with ^, since you're pulling in new features (in a perfect world, this would not break the API but with new features comes more code churn). I tend towards ^, because I like to live dangerously, but I can understand the other side of the argument.

Choose a reason for hiding this comment

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

@bcoe true, but I don't know many library authors that would back port fixes to older minor versions of their library, even if that fix could be applied to previous minor versions.

Copy link
Owner

Choose a reason for hiding this comment

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

@dcousens see my latest rant on the topic starting here: https://twitter.com/rvagg/status/602642984845254656 (follow link in that tweet and read the replies on twitter)

@stevemao
Copy link
Contributor

rebase?

@stevemao
Copy link
Contributor

@rvagg merge?

@rvagg
Copy link
Owner

rvagg commented Jul 29, 2015

sorry, doesn't work for me on my current computer because I have /tmp mounted noexec, which is not uncommon on many Linux systems, primarily Ubuntu, and through2/node_modules/nyc/node_modules/spawn-wrap/index.js:143 uses a path that it makes in /tmp/ to execute "node" (io.js in the current case)

@bcoe bcoe closed this Jul 29, 2015
@stevemao
Copy link
Contributor

@bcoe are you going to fix the issue and reopen this?

@bcoe
Copy link
Author

bcoe commented Jul 29, 2015

@stevemao see the discussion taking shape on spawn-wrap, sounds like we could potentially hammer something out that makes everyone happy.

@phated phated mentioned this pull request May 13, 2017
@dcousens
Copy link

dcousens commented Oct 4, 2018

Rebase or close?

@rvagg
Copy link
Owner

rvagg commented Nov 6, 2018

added basic nyc to the "test" script in latest version, will skip the coveralls bit for now

@rvagg rvagg closed this Nov 6, 2018
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