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

Capture test output for Minitest reporter #3286

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

andyw8
Copy link
Contributor

@andyw8 andyw8 commented Mar 10, 2025

This intercepts anything sent to stdout via puts or print and emits is as event in the JSON stream. VS Code's test explorer appendOutput is not associated to any test ID, so we can just keep appending arbitrary output to that panel.

One the approach is validated, I can do the same for test-unit.

Copy link

graphite-app bot commented Mar 10, 2025

How to use the Graphite Merge Queue

Add 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.

@andyw8 andyw8 force-pushed the andyw8/capture-test-output branch 2 times, most recently from 58964cd to 1cf3a07 Compare March 10, 2025 19:07
@andyw8 andyw8 added Severity: 4 Low Severity enhancement New feature or request server This pull request should be included in the server gem's release notes labels Mar 10, 2025
@andyw8 andyw8 force-pushed the andyw8/capture-test-output branch from 1cf3a07 to 48e8e63 Compare March 10, 2025 19:09
@andyw8 andyw8 force-pushed the andyw8/capture-test-output branch from 48e8e63 to 4d7c5ea Compare March 10, 2025 19:12
@andyw8 andyw8 marked this pull request as ready for review March 10, 2025 19:14
@andyw8 andyw8 requested a review from a team as a code owner March 10, 2025 19:14
@@ -59,6 +60,14 @@ def record_error(id:, message:, uri:)
send_message("error", params)
end

#: (message: String) -> void
def write_stdout(message:)
params = {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(could have inlined but wanted to be consistent with the other methods)

@andyw8 andyw8 removed the Severity: 4 Low Severity label Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request server This pull request should be included in the server gem's release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant