swiftlang / swiftlang/swift-testing

Configurable log prefix

Open
#472 3 comments 0 reactions 1 assignee View on GitHub

@grynspan is already working on this.

Since Jun 12, 2024.

command-line experience enhancement
Dominant language
Swift
Stars
2.2k
Forks
169
Avg merge
1d 18h
Merged PRs (30d)
56

Description

Description

We are running test with lots of log output that are hard to run locally end-to-end, so we often have to rely on CI to get the results.

Getting these results is difficult because of how noisy the logs are. It'd be very helpful if we could set a custom prefix that is prepended to all testing output lines. That way we can filter/search the log chaos on a known string in the CI viewer and zero in on just the test failure output.

Would be great if this was a global config or even a per-test trait.

Expected behavior
Actual behavior
Steps to reproduce

No response

swift-testing version/commit hash

No response

Swift & OS version (output of swift --version && uname -a)

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.