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 happiness, resolves #224 #373

Closed
wants to merge 2 commits into from
Closed

adds happiness, resolves #224 #373

wants to merge 2 commits into from

Conversation

dcousens
Copy link
Collaborator

Currently the tests are failing because eslint explodes.

@dcousens dcousens mentioned this pull request Aug 13, 2015
@bruderstein
Copy link
Collaborator

You don't need to do npm run coveralls and npm run unit, coveralls runs the tests, and fails if the tests fail.

@dcousens
Copy link
Collaborator Author

@bruderstein perhaps then coveralls is doing too much?
I'd expect that target to run all the way even if the tests fail?
No?

If a test fails, that doesn't equate 0% or failed coverage.

@bruderstein
Copy link
Collaborator

To test coverage, we run the tests. That's what coverage is 😄

If we make this pass even if the tests fail (just add an || true), then the tests run twice, which is just extra work with no benefit.

@dcousens
Copy link
Collaborator Author

@bruderstein I've also found keeping coveralls separate helps when coveralls fails, which with my experience in https://github.com/bitcoinjs/bitcoinjs-lib/, happens often.

For comparison, our scripts can be found here.
I agree though, it does seem a bit redundant, and I'm on the fence about whether or not to change it.

@@ -48,11 +49,12 @@
"cover": "istanbul cover node_modules/.bin/_mocha -- -u exports --compilers js:babel/register -R spec",
"coveralls": "NODE_ENV=test ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -u exports --compilers js:babel/register -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@bruderstein why not just istanbul cover ... and | coveralls by the way?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I took that from the coveralls site, if there's a better way, let's have it.

On Thu, Aug 13, 2015 at 8:57 AM, Daniel Cousens [email protected]
wrote:

In package.json
#373 (comment):

@@ -48,11 +49,12 @@
"cover": "istanbul cover node_modules/.bin/_mocha -- -u exports --compilers js:babel/register -R spec",
"coveralls": "NODE_ENV=test ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -u exports --compilers js:babel/register -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",

@bruderstein https://github.com/bruderstein why not just | coveralls by
the way?


Reply to this email directly or view it on GitHub
https://github.com/JedWatson/react-select/pull/373/files#r36945543.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@bruderstein changed in 65358b5

@dcousens dcousens closed this Sep 22, 2015
@dcousens dcousens deleted the happiness branch September 22, 2015 03:52
@dcousens
Copy link
Collaborator Author

I'll leave this one to you @bruderstein

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.

2 participants