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

switch to c8 for code coverage #6778

Merged
merged 1 commit into from
Jul 19, 2021
Merged

switch to c8 for code coverage #6778

merged 1 commit into from
Jul 19, 2021

Conversation

calebcartwright
Copy link
Member

Resolves #6753

@shields-ci
Copy link

Messages
📖 ✨ Thanks for your contribution to Shields, @calebcartwright!

Generated by 🚫 dangerJS against 8324d25

@@ -68,16 +68,16 @@
"xpath": "~0.0.32"
},
"scripts": {
"coverage:test:core": "nyc npm run test:core",
"coverage:test:frontend": "nyc --nycrc-path .nycrc-frontend.json npm run test:frontend",
Copy link
Member Author

Choose a reason for hiding this comment

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

c8 defines its own config files (e.g. .c8rc.json) but it will happily accept the nyc-named files as well. For the moment I've opted to not rename these files because it's not necessary and because I figure it makes sense to try c8 for a while before fully committing

"coverage:test:package": "c8 npm run test:package",
"coverage:test:entrypoint": "c8 npm run test:entrypoint",
"coverage:test:integration": "c8 npm run test:integration",
"coverage:test:services": "c8 npm run test:services",
"coverage:clean": "rimraf .nyc_output coverage",
Copy link
Member Author

Choose a reason for hiding this comment

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

Same theme here relative to a trial period for c8. Plus this directory will likely already exist on the local fs for regular contributors so doesn't hurt to keep it in here for a little while regardless

@paulmelnikow
Copy link
Member

Thanks for picking this up!

@calebcartwright calebcartwright merged commit 1a1e545 into master Jul 19, 2021
@calebcartwright calebcartwright deleted the nyc-to-c8 branch July 19, 2021 03:17
@PyvesB PyvesB mentioned this pull request Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Related to dependency updates developer-experience Dev tooling, test framework, and CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

coverage:test:frontend failing with syntax error
4 participants