-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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(testing): correctly set task status for failed coverage reports #14008
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
barbados-clemens
added
the
scope: testing tools
Issues related to Cypress / Jest / Playwright / Vitest support in Nx
label
Dec 23, 2022
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
barbados-clemens
changed the title
fix(testing): correctly set task status for failed coverage repos
fix(testing): correctly set task status for failed coverage reports
Dec 23, 2022
IMHO they should line up with paths from other executor options, which tend to be based on workspace root |
barbados-clemens
force-pushed
the
fix/vite-coverage
branch
from
December 28, 2022 20:52
82e7214
to
6dcf20e
Compare
barbados-clemens
force-pushed
the
fix/vite-coverage
branch
from
December 28, 2022 21:01
6dcf20e
to
08ea6f6
Compare
mandarini
approved these changes
Jan 3, 2023
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Current Behavior
when coverage isn't met vitest shows error but nx says it was successful
Expected Behavior
not met coverage limits should cause tasks to fail
Related Issue(s)
Also noticed an incosistency with the coverage paths set by the vitest generator.
basically using the
{workspaceRoot}
and{projectRoot}
variables in the executor options which are not currently expanded so the folder structure results in the actual test{workspaceRoot}
as the folder names.Also by default coverage reports are placed in the project root (where vitest runs). Should this line up with jest and be in the root /coverage/ directory?
I initially thought so based on the standalone project (since project root is also the workspace root) but noticed in integrated repo it's actually the project root. Open to whatever makes sense just wanted to fix the paths but need to know where they should be for the generator and migration
Fixes #13676