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

Issue: #3166: Introduce --redirect-stdout and --redirect-stderr CLI options to redirect STDOUT and STDERR #4311

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

Conversation

Oyster-zx
Copy link

@Oyster-zx Oyster-zx commented Feb 12, 2025

Overview

Add new CLI options --redirect-stdout and --redirect-stderr to redirect stdout and stderr respectively to a file,
if both are set to the same file, stdout and stderr will be merged.

Issue: #3166

Credits to @mobounya for the initial PR.


I hereby agree to the terms of the JUnit Contributor License Agreement.


Definition of Done

Copy link
Member

@marcphilipp marcphilipp left a comment

Choose a reason for hiding this comment

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

Please add a test for the separate/same file redirect cases to ConsoleLauncherIntegrationTests.

@Oyster-zx Oyster-zx force-pushed the feat-redirect_stderr_and_stdout branch 6 times, most recently from 8fada9f to 85d8577 Compare February 13, 2025 04:56
@Oyster-zx Oyster-zx force-pushed the feat-redirect_stderr_and_stdout branch 4 times, most recently from d013e56 to 48361ac Compare February 19, 2025 04:42
@Oyster-zx Oyster-zx force-pushed the feat-redirect_stderr_and_stdout branch from 48361ac to 13caf16 Compare March 1, 2025 05:44
@Oyster-zx Oyster-zx force-pushed the feat-redirect_stderr_and_stdout branch from 13caf16 to 4a81bc9 Compare March 2, 2025 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow ConsoleLauncher to redirect STDOUT and STDERR to files instead of the console
2 participants