Closed alan-morey closed 2 years ago
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.
Hi @alan-morey thanks for reporting this! Are you expecting the results to be outputted by default for both of the following commands?
sfdx force:apex:test:run -t MyTest
& sfdx force:apex:test:run -t MyTest -w 500
@AnanyaJha Yes, I would have expected that the results would be output by default to screen regardless of whether the -w
flag was passed or not. However, if after the wait time had lapsed and the tests were not completed, then I would expect message indicating timeout waiting and instructions on how to retrieve my test results with force:apex:test:report
.
Update on this - this will be fixed with #241, which will be available once we're out of our Dreamforce release freeze.
Hi @alan-morey this issue should be resolved with the latest version of the Apex plugin 0.3.0
. Please let us know if you see otherwise!
Verified, results are output in human format by default.
Summary
When executing tests with
force:apex:test:run
the test results are not output to screen by default after command completes.Steps To Reproduce:
MyTest.cls
Given the test class
MyTest
exists in the Org.Expected result
Expected test methods of
MyTest
would be executed and the results written to standard output in human format, as was the behaviour in previous versions ofsfdx
.Actual result
Instead of the results being written to the standard output, a message is output with instructions on how to retrieve the test results.
Specifying
-w, --wait
does not change the outcomeAdditional information
Running the same command but specifying a result format explicitly then the results get output to screen as expected:
This works for formats human, tap, and json but not junit, due to another issue reported here: forcedotcom/salesforcedx-vscode#3359
SFDX CLI Version(to find the version of the CLI engine run sfdx --version):
sfdx-cli/7.107.0 linux-x64 node-v14.17.1
SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core)
OS and version: Ubuntu 18.04.5 LTS