-
Notifications
You must be signed in to change notification settings - Fork 78
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
sf force lightning lwc test run returns exit code 0 when tests fail #2991
Comments
Hello @jamessimone 👋 It looks like you didn't include the full Salesforce CLI version information in your issue. A few more things to check:
Thank you! |
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted. |
This issue should not be closed |
hey, sorry for the late reply. the command should return the same exit code that but looking at the e2e test it seems that hasn't been the case: we'll discuss with the owners of |
This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted. |
Bump |
This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted. |
Bump |
This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted. |
Bump |
@jamessimone - Thanks for keeping this bumped. My team connected with the team that owns We confirmed that the behavior of The CLI team will explore a fix for this issue, but I can't provide a timeline. |
This issue has been linked to a new work item: W-16884223 |
@VivekMChawla thanks for keeping us updated, it's much appreciated |
This issue has been fixed in CLI version 2.62.6 (October 16, 2024). |
@jshackell-sfdc thanks! |
Summary
Using latest CLI version (
@salesforce/cli/2.55.6 win32-x64 node-v20.16.0
), these two commands differ when encountering failing LWC jest tests:This improperly suppresses failures when relying on exit codes (such as in pipeline runs)
Steps To Reproduce
Expected result
CLI should return exit code 1 when using
sf force lightning lwc test run
with any test failureActual result
CLI returns exit code 0
The text was updated successfully, but these errors were encountered: