-
Notifications
You must be signed in to change notification settings - Fork 179
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
Append test output when a test fails #3146
base: main
Are you sure you want to change the base?
Append test output when a test fails #3146
Conversation
When a test fails `assertTestPasses` throws an error with the stdout of the command. This wasn't added to the test's output in the `catch` handler which made VSCode report the test run as not recording any output. Fixes Shopify#3090
How to use the Graphite Merge QueueAdd the label graphite-merge to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
I have signed the CLA! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I responded in more detail on the issue but I think what's happening is that When I What I am seeing is that when running multiple tests at once that the failing ones now show up on the test run whereas previously those would only show on the test case. The output is a bit messy though because even though it's testing an entire file each test command is run individually:
|
I can't reproduce what you mentioned using the LSP's own codebase. For example, if I force a test to fail in I think the issue may be related to parallelization, which might potentially be printing multiple test results all at once. Do you have parallelization in the project that fails? How is that configured? |
Motivation
When a test fails
assertTestPasses
throws an error with the stdout of the command. This wasn't added to the test's output in thecatch
handler which made VSCode report the test run as not recording any output.Closes #3090
Implementation
Automated Tests
The current tests for test controller are minimal and I don't know where to get started to implement a test for this specific behavior.
Manual Tests
I ran the extension and with a project where my (failed) tests weren't showing any output. This PR fixed it.