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

Test peek output doesn't contain full output (eg. stack traces) #3963

Closed
DanTup opened this issue May 16, 2022 · 4 comments
Closed

Test peek output doesn't contain full output (eg. stack traces) #3963

DanTup opened this issue May 16, 2022 · 4 comments
Labels
in testing Relates to test execution of Dart/Flutter tests for end users is bug
Milestone

Comments

@DanTup
Copy link
Member

DanTup commented May 16, 2022

Raised by @brianegan at #3704 (comment) - the error peek window doesn't contain the stack trace that's shown in the debug pane.

@DanTup DanTup added is bug in testing Relates to test execution of Dart/Flutter tests for end users labels May 16, 2022
@DanTup DanTup added this to the v3.42.0 milestone May 16, 2022
@DanTup
Copy link
Member Author

DanTup commented May 16, 2022

It occurs to me that part of the peek window in the screenshot is off-screen, and the other messages might be in there. The way show messages are shown in the peek window is a little odd IMO, but we should see if we can improve this (and if not, file VS Code suggestions).

@brianegan
Copy link

brianegan commented May 16, 2022 via email

@DanTup
Copy link
Member Author

DanTup commented May 16, 2022

I don't expect themes to alter this - but you should have a second column in the peek window that you can resize. It should show each output message including the ones with the stack trace). I don't think it's a good design, but we're limited in what we can change from extensions.

@DanTup
Copy link
Member Author

DanTup commented May 30, 2022

The displayed output has been improved slightly:

Screenshot 2022-05-30 at 12 57 52

We now filter out any messages in the form "Test failed. See exception logs above.\nThe test description was" so that they won't show up here, and then we repeat the last output message from the test as the failure message. This results in some duplication (the message shown here appears twice in the tree on the right), but because of how Dart's test runner reports an error event separately to the failure of the test (and VS Code assumes the failure always a new unseen message) any way of fixing this has some other trade-offs (like buffering messages which means the test output wouldn't be real-time).

I've also filed microsoft/vscode#150702 about the link in this output not being clickable if it includes a line/col on the end (these clickable links are handled by VS Code).

@DanTup DanTup closed this as completed in ec283ce May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in testing Relates to test execution of Dart/Flutter tests for end users is bug
Projects
None yet
Development

No branches or pull requests

2 participants