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

Introduce --redirect-stdout and --redirect-stderr CLI options to redirect STDOUT and STDERR #3637

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Commits on Jan 14, 2024

  1. Add new merged standard streams interceptor.

    Add method registerMergedStandardStreams in StreamInterceptor to merge
    stdout and stderr so both can be intercepted in an stdout interceptor.
    This will keep the relative order for both outputs, which makes it
    easier to correlate error messages with the corresponding output.
    
    Add new configuration parameter junit.platform.output.capture.merge to
    merge stdout and stderr and publish it as STDOUT_REPORT_ENTRY_KEY to
    all registered TestExecutionListener instances.
    
    Issue: junit-team#3166
    mobounya committed Jan 14, 2024
    Configuration menu
    Copy the full SHA
    f607bf5 View commit details
    Browse the repository at this point in the history
  2. Add CLI options to redirect stderr and stdout.

    Add new CLI options --redirect-stdout and --redirect-stderr to
    redirect stdout and stderr to a file, if both are set to the same file,
    stdout and stderr will be merged so we can keep the relative order of
    messages. This makes it easier to correlate error messages with the
    corresponding output.
    
    Issue: junit-team#3166
    mobounya committed Jan 14, 2024
    Configuration menu
    Copy the full SHA
    933c41c View commit details
    Browse the repository at this point in the history
  3. Document output redirecion changes.

    Document the changes for the previous two commit in the 5.11.0-M1
    release notes and in the user guide.
    
    Issue: junit-team#3166
    mobounya committed Jan 14, 2024
    Configuration menu
    Copy the full SHA
    1f2bd90 View commit details
    Browse the repository at this point in the history
  4. Annotate new methods with @API annotation

    Add @API annotation to new methods.
    
    Issue: junit-team#3166
    mobounya committed Jan 14, 2024
    Configuration menu
    Copy the full SHA
    ae0fce5 View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2024

  1. Configuration menu
    Copy the full SHA
    af01ea8 View commit details
    Browse the repository at this point in the history