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

chore: switch to c8 for coverage #8

Merged
merged 4 commits into from
Sep 12, 2018
Merged

chore: switch to c8 for coverage #8

merged 4 commits into from
Sep 12, 2018

Conversation

bcoe
Copy link
Member

@bcoe bcoe commented Sep 8, 2018

switches to using c8 for coverage now that coverage support has been landed in Node.js 10.10.0.

@bcoe bcoe requested a review from JaKXz September 8, 2018 23:45
Copy link
Member

@JaKXz JaKXz left a comment

Choose a reason for hiding this comment

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

This is cool but I think there are some easy improvements to make. If c8 report isn't a thing, maybe using the lcov reporter in the test command would be more efficient

.travis.yml Outdated
language: node_js
node_js:
- "10.10"
after_script: npm run coverage
Copy link
Member

Choose a reason for hiding this comment

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

I would recommend using after_success here.

package.json Outdated
"posttest": "standard",
"release": "standard-version"
"release": "standard-version",
"coverage": "c8 --reporter=text-lcov tap test/*.js | coveralls"
Copy link
Member

Choose a reason for hiding this comment

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

Sorry if I'm missing context here, but is there a c8 report instead of having to run all the tests again?

Copy link
Member Author

Choose a reason for hiding this comment

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

I haven't hammered out c8 report yet, but I'd be happy to do so before landing this.

Copy link
Member

@JaKXz JaKXz left a comment

Choose a reason for hiding this comment

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

:shipit:

@bcoe bcoe merged commit 65e0f02 into master Sep 12, 2018
@bcoe bcoe deleted the switch-to-c8 branch September 12, 2018 22:48
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.

None yet

2 participants