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

Merged
merged 9 commits into from
Mar 19, 2025
Merged

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 2 times, most recently 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
@andyw8 andyw8 removed the Severity: 4 Low Severity label Mar 11, 2025
@andyw8 andyw8 force-pushed the andyw8/capture-test-output branch from 46524c7 to 3fbcd9a Compare March 18, 2025 18:02
graphite-app bot pushed a commit that referenced this pull request Mar 19, 2025
### Motivation

To go with #3286

Start handling the append output events.

### Implementation

There's not much, we just need to register a new event and start appending the output. I also added a debug log.
vinistock added a commit that referenced this pull request Mar 19, 2025
Add support for appendOutput to streaming explorer updates (#3323)

### Motivation

To go with #3286

Start handling the append output events.

### Implementation

There's not much, we just need to register a new event and start appending the output. I also added a debug log.

Co-authored-by: vinistock <[email protected]>
@andyw8 andyw8 force-pushed the andyw8/capture-test-output branch from 4119d83 to 774b7e2 Compare March 19, 2025 16:00
@andyw8 andyw8 enabled auto-merge (squash) March 19, 2025 18:03
@andyw8 andyw8 merged commit 8f12d8c into main Mar 19, 2025
42 checks passed
@andyw8 andyw8 deleted the andyw8/capture-test-output branch March 19, 2025 18:27
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.

2 participants