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

Add an experimental console output prefix option for command-line output. #476

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

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Jun 12, 2024

This PR adds the ability to specify a prefix that should be applied to all output from the command line when using swift test. For example, if you specify the prefix "[WHEE]", then you'll get output like:

[WHEE] ◇ Test run started.
[WHEE] ↳ Testing Library Version: ff2775952f346dd94757adffa7f7ba57bcc4b2d1 (modified)
[WHEE] ◇ Suite "My suite" started.
(etc.)

Since the --experimental-console-output-prefix argument is not recognized by Swift Package Manager, you can also specify the prefix using an environment variable, "SWT_EXPERIMENTAL_CONSOLE_OUTPUT_PREFIX".

Resolves #472.
Resolves rdar://129677014.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

…put.

This PR adds the ability to specify a prefix that should be applied to all
output from the command line when using `swift test`. For example, if you
specify the prefix "`[WHEE]`", then you'll get output like:

> [WHEE] ◇ Test run started.
> [WHEE] ↳ Testing Library Version: ff2775952f346dd94757adffa7f7ba57bcc4b2d1 (modified)
> [WHEE] ◇ Suite "My suite" started.
(etc.)

Since the `--experimental-console-output-prefix` argument is not recognized by
Swift Package Manager, you can also specify the prefix using an environment
variable, `"SWT_EXPERIMENTAL_CONSOLE_OUTPUT_PREFIX"`.

Resolves #472.
Resolves rdar://129677014.
@grynspan grynspan added enhancement New feature or request swiftpm-integration Swift Package Manager integration labels Jun 12, 2024
@grynspan grynspan self-assigned this Jun 12, 2024
@grynspan
Copy link
Contributor Author

@swift-ci please test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request swiftpm-integration Swift Package Manager integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configurable log prefix
1 participant