Skip to content

feat: add xcodebuild test filter (TOML) #484

Closed

Description

@FlorianBruniaux

Context

rtk discover from a real iOS developer session shows xcodebuild test used 7 times with no savings. Output is notoriously verbose.

Problem

xcodebuild test output is extremely noisy — hundreds of lines of compilation logs, boilerplate headers, and verbose test runner output for what is usually a simple pass/fail result.

Typical raw output includes:

  • Build phase headers (=== BUILD TARGET ...)
  • Compilation lines (CompileC, CompileSwift, Ld, etc.)
  • Simulator bootstrap messages
  • Per-test verbose lines (Test Case '-[...]' started.)
  • On failure: assertion details (valuable, must keep)

Proposed TOML filter

A xcodebuild-test.toml filter that:

  • Strips compilation/build phase lines
  • Strips simulator startup noise
  • Shows only test results: passed, failed, error
  • Keeps failure details (assertion messages, file:line)
  • Shows summary line (Executed N tests, with N failures)

Match on ^xcodebuild\b.*test (or ^xcodebuild test).

Real-world example

xcodebuild test -scheme ShopmiumSandbo.. -destination 'platform=iOS Simulator,...'

Token savings estimate

~85-90% — similar to cargo test filter which achieves 90%+.

Priority

Medium — iOS/macOS devs using Claude Code is a growing segment. xcodebuild is their equivalent of cargo test.

Activity

  1. added
    enhancement
    on Mar 10, 2026
  2. added 3 commits that reference this issue on Mar 10, 2026
    c827997
    e5e2f87
    9193600
  3. added a commit that references this issue on Mar 12, 2026
    d0396da
  4. added 2 commits that reference this issue on May 14, 2026
    f88681e
    252e621
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions