-
Notifications
You must be signed in to change notification settings - Fork 72
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
fix: nyc command with shard option #257
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## future #257 +/- ##
==========================================
- Coverage 76.63% 75.30% -1.33%
==========================================
Files 11 8 -3
Lines 184 166 -18
Branches 39 35 -4
==========================================
- Hits 141 125 -16
+ Misses 43 41 -2 ☔ View full report in Codecov by Sentry. |
Hey @bryanjtc thank you so much for this contribution (and the many others)! Does this mean that for developers using |
Yes. Especifically the coverage.json file for each ci job should be renamed using the shardIndex value. |
Could you assist in writing some sort of recipe? Also there should be extra changes in |
yeah |
@yannbf Done. The renaming part should be done in the yml ci file. I added a recipe for github, gitlab and circle ci. |
Co-authored-by: Hirotaka Miyagi <31152321+MH4GF@users.noreply.github.com>
You're the best @bryanjtc, thanks a lot for this contribution! There were some small issues regarding watch mode so I added a few fixes as well. |
🚀 PR was released in |
Corrected because the content of this comment was not reflected in other parts of the usage. storybookjs#257 (comment)
Fixes: #256
Added a new environment variable to check if the shard cli option is used to run the nyc command conditionally.
📦 Published PR as canary version:
0.10.1--canary.257.aa7a0c9.0
✨ Test out this PR locally via:
npm install @storybook/test-runner@0.10.1--canary.257.aa7a0c9.0 # or yarn add @storybook/test-runner@0.10.1--canary.257.aa7a0c9.0
Version
Published prerelease version:
v0.11.0-future.4
Changelog
🚀 Enhancement
🐛 Bug Fix
Authors: 5