Skip to content
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

Missing stack trace when test fails since 14/01 release #807

Closed
PawelWozniak opened this issue Jan 15, 2021 · 5 comments
Closed

Missing stack trace when test fails since 14/01 release #807

PawelWozniak opened this issue Jan 15, 2021 · 5 comments
Labels
area:apex Highlights the apex functional area of the CLI.

Comments

@PawelWozniak
Copy link

PawelWozniak commented Jan 15, 2021

Summary

CLI human output format has changed after 14 January release. It is definitely step in good direction as it is more readable but is missing stack trace or a least line where error occurred (most top entry from stack trace).

Steps To Reproduce:

Run test class that fails with some error.

Expected result

I can see in CLI output at which line it failed.
Example Class.testUpdateAccountID.UpdateAccountID: line 48, column 1

Actual result

image

It show error message but I don't know where it failed.

Additional information

SFDX CLI Version sfdx-cli/7.84.2-a2868a68d5 win32-x64 node-v12.18.3
OS and version:Windows 10

@PawelWozniak PawelWozniak added the investigating We're actively investigating this issue label Jan 15, 2021
@github-actions
Copy link

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.

@PawelWozniak PawelWozniak changed the title Missing stack trace when test fails since 14 Jan release Missing stack trace when test fails since 14/01 release Jan 15, 2021
@jamessimone
Copy link

Also suffering from this change. In addition to the stacktrace not appearing - not even the line where the failure occurred, just the message! - this issue is exacerbated by an enormous change in the behavior of the VS Code extension: previously, when tests failed, the Output panel would pop up automatically with the contents of the failure message; there was also a pop-up information status that would tell you that the tests had failed. Now, the only thing that happens when the tests finish running is a message in the status bar: "Run Apex Tests successfully ran." It's possible that the lack of feedback in VS code is directly related to the issue with the stacktrace, which is why I mention it here. The combination of both of these issues has made testing a frustrating experience over the past few days.

@amphro amphro added the area:apex Highlights the apex functional area of the CLI. label Jan 21, 2021
@github-actions
Copy link

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.

@amphro amphro removed the investigating We're actively investigating this issue label Jan 25, 2021
@AndrewRayCode
Copy link

The previous working version of sfdx also used to show the test command being run so that you could copy it into a terminal and tweak the command line flags. That is no longer being shown either.

See also #718. I'm not sure if you can turn off auto updating for the vscode plugin's version of sfdx?

@PawelWozniak
Copy link
Author

Closing as this is not valid anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:apex Highlights the apex functional area of the CLI.
Projects
None yet
Development

No branches or pull requests

4 participants