-
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
Ability to retrieve Test Report on deploy commands #1089
Comments
Thank you for filing this feature request. We appreciate your feedback and will review the feature at our next grooming or sprint planning session. We prioritize feature requests with more upvotes and comments. |
This issue has been linked to a new work item: W-9646703 |
See also #57 |
Thanks @alan-morey, I could not find that, previously, but it makes sense to link the two together, and I guess this means that more people have a similar use case. |
@jefersonchaves @alan-morey when you run I know it's just |
Hey @mshanemc, I can certainly try that (today I receive 0 test results), but if the results are given to the SFDX engine would not be fair to ask this to be exposed similarly to Update: I have tested with |
Hi @mshanemc using However, I think the better option would be for the "deploy" commands to offer this as a feature, instead of pushing this onto the developer community to build their own solutions to get Junit reports from undocumented json result format. Considering there is already Junit report generation in One of my goals here is to just be able to specify the path to a Junit file as a post build action on the configuration of a Jenkins job and let Jenkins do its thing with that file. |
This is certainly a feature I would use. It would enable me to pass on the test results with code coverage to our instance of sonarcloud for reporting in there. |
It seems that this was delivered, see the salesforcecli/plugin-source#491 |
It seems that it was delivered as part of 7.153.0 |
Is your feature request related to a problem? Please describe.
Today we cannot retrieve test results nor coverage when executing deployments (e.g.
sfdx force:source:deploy
), which is especially useful for validation deployment--checkonly
in conjunction with running the test. That also would be valuable on production deployment as proof of deployment course.What are you trying to do
Run validation deployment with tests against a sandbox and retrieve test results for CI build (JUnit format or similar).
Describe the solution you'd like
Similar switches to
sfdx force:apex:test:run
such as--outputdir
,--codecoverage
, and--resultformat=(human|tap|junit|json)
.Describe alternatives you've considered
Performing the deployment on sandbox and then running the tests would not be ideal because it could leave unused fields between development iterations.
The text was updated successfully, but these errors were encountered: