Skip to content

Conversation

@bcoe
Copy link
Contributor

@bcoe bcoe commented Nov 22, 2016

This sees @motiz88's work over the finish line; I released a couple more changes to nyc for babel's benefit (caching on by default, configurable debug output) and tested thoroughly:

Q A
Bug fix? No
Breaking change? No
New feature? No
Deprecations? No
Spec compliancy? No
Tests added/pass? No (they pass though, woo!)
Fixed tickets See #4740
License MIT
Doc PR Nope
Dependency Changes

Just a couple tweaks to @motiz88's work, and a rebase with master; would love to see this over the finish line:

Note: we do now add empty reports for files that aren't accessed.

CC: @danez, @hzoo

motiz88 and others added 3 commits November 22, 2016 09:50
@motiz88
Copy link
Contributor

motiz88 commented Nov 22, 2016

Oh lovely. @bcoe I really appreciate you picking this up.

@codecov-io
Copy link

codecov-io commented Nov 22, 2016

Current coverage is 89.22% (diff: 100%)

Merging #4885 into master will decrease coverage by 0.12%

@@             master      #4885   diff @@
==========================================
  Files           196        204      +8   
  Lines         14022      10487   -3535   
  Methods        1460       1153    -307   
  Messages          0          0           
  Branches       3263       2762    -501   
==========================================
- Hits          12529       9357   -3172   
+ Misses         1493       1130    -363   
  Partials          0          0           

Powered by Codecov. Last update 7e02027...02ba5ae

Makefile Outdated
NODE_ENV=test make bootstrap
./scripts/test-cov.sh
cat ./coverage/coverage.json | ./node_modules/codecov.io/bin/codecov.io.js
# if ./node_modules/.bin/semver `npm --version` -r ">=3.3.0"; then ./node_modules/.bin/flow check; fi
Copy link
Member

Choose a reason for hiding this comment

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

this comment can be removed since we run flow in a separate travis thing now

@bcoe
Copy link
Contributor Author

bcoe commented Nov 22, 2016

@hzoo 👍

@hzoo
Copy link
Member

hzoo commented Nov 23, 2016

Dono if it's worth adding make/npm command for us to open the coverage locally (if it works online then great, since it always seemed to be weird for me)

@bcoe
Copy link
Contributor Author

bcoe commented Nov 23, 2016

@hzoo you can run:

./node_modules/.bin/nyc --reporter=html

And view an html report in the /coverage folder; would you like to add a shortcut for that to package.json?

@bcoe
Copy link
Contributor Author

bcoe commented Nov 27, 2016

@hzoo perhaps we can land this, and in a separate issue if you describe to me the types of reports you'd like output I'd be happy to add a few more npm-scripts for you post-hoc.

@hzoo
Copy link
Member

hzoo commented Nov 28, 2016

Ah yeah that was just a comment not a review or anything (I wasn't doing much oss last week)

@hzoo hzoo merged commit db67d7f into babel:master Nov 28, 2016
@bcoe
Copy link
Contributor Author

bcoe commented Nov 29, 2016

@hzoo hooray, thanks for landing this 👍 and @motiz88 thanks for all the hard work. having both projects using each other will help ensure logic is less likely to break going forward 💯

hzoo referenced this pull request in sveltejs/svelte Nov 29, 2016
panagosg7 pushed a commit to panagosg7/babel that referenced this pull request Jan 17, 2017
…babel#4885)

* Switch to nyc, babel-plugin-istanbul & codecov-node for code coverage

This setup (very much like Babylon's) let us trace code coverage back to the `src/` directories of packages.

* Exclude package tests from coverage report

* fix: upgrade to version of nyc that tweaks a couple more things for babel

* fix: remove comment based on @hzoo's review
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 7, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

outdated A closed issue/PR that is archived due to age. Recommended to make a new issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants