Skip to content

keep test output separate, support -json#1

Merged
derekparker merged 1 commit into
go-delve:masterfrom
aarzilli:sepout
Sep 26, 2025
Merged

keep test output separate, support -json#1
derekparker merged 1 commit into
go-delve:masterfrom
aarzilli:sepout

Conversation

@aarzilli

Copy link
Copy Markdown
Member

Adds support for:

  • running tests in parallel through 'go test', without having to first build the executable separately
  • code to generate -json output (only when 'go test' is used)
  • code to keep the output of different tests separated

The last feature is implemented by collecting the outputs of each subprocess into a buffer and then writing that buffer to stdout when either the process ends or one of the tests finishes running.

Adds support for:

- running tests in parallel through 'go test', without having to first
  build the executable separately
- code to generate -json output (only when 'go test' is used)
- code to keep the output of different tests separated

The last feature is implemented by collecting the outputs of each
subprocess into a buffer and then writing that buffer to stdout when
either the process ends or one of the tests finishes running.

@derekparker derekparker left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@derekparker derekparker merged commit 36b7be5 into go-delve:master Sep 26, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants