tuist avatar

Analyze Selective Testing

When your Xcode selective testing suddenly stops skipping tests and effectiveness tanks from 75% to 15%, this walks you through the diagnosis. It queries Tuist's test run data to count cache hits by target, compares hash changes between runs, and points you at the root cause, whether that's an Xcode version bump that invalidated everything or a core dependency change that cascaded. The analysis is methodical: pull test run JSON, calculate effectiveness percentages, diff target statuses between good and bad runs, then give you concrete next steps. It's built for the specific moment when your test suite that used to skip 60% of unchanged targets is suddenly running everything and you need to know why.

skills.sh installs
304
GitHub stars
35
last updated
Aug 21, 2026

Install

$ npx -y skills add tuist/agent-skills --skill analyze-selective-testing --agent claude-code

Installs into .claude/skills of the current project.

Files

Analyze Selective Testing

Quick Start

  1. Run tuist test list --json to find test runs.
  2. Run tuist test xcode target list <test-run-id> --json to see per-target selective testing status.
  3. If effectiveness dropped, compare targets between a known-good run and the regressed run.

Step 1: Resolve Test Runs

Find the test run to analyze

List recent test runs, optionally filtering by branch:

tuist test list --json --page-size 10
tuist test list --git-branch feature-x --json --page-size 5

Get basic info for a specific test run:

tuist test show <test-run-id> --json

Use this to confirm the run's branch, status, scheme, and environment (xcode_version, macos_version).

Defaults

  • If no test run is specified, use the most recent CI test run on the current branch.
  • For comparison, use the most recent CI test run on the project's default branch.

Step 2: Drill Into Selective Testing Targets

List per-target selective testing data for a test run:

tuist test xcode target list <test-run-id> --json

Sponsors

Details

Repository
github.com/tuist/agent-skills
Categories
Testing & QA, AI & Agent Building, Mobile Development
First seen
Jun 3, 2026

More from tuist/agent-skills

All 9
1mastepanoski avatarowasp-ai-testingmastepanoski/claude-skillsAI trustworthiness testing using OWASP AI Testing Guide v1. Execute 32 test cases across 4 layers (Application, Model, Infrastructure, Data) with practical payl245skills.sh installs
2charleswiltgen avataraxiom-ios-testingcharleswiltgen/axiomUse when writing ANY test, debugging flaky tests, making tests faster, or asking about Swift Testing vs XCTest. Covers unit tests, UI tests, fast tests without 238skills.sh installs
3longbridge avatargpui-testlongbridge/gpui-componentWriting tests for GPUI applications. Use when testing components, async operations, or UI behavior.223skills.sh installs
4johnrogers avatarswift-testingjohnrogers/claude-swift-engineeringUse when writing tests with Swift Testing (@Test,209skills.sh installs
5charleswiltgen avataraxiom-swift-testingcharleswiltgen/axiomUse when writing unit tests, adopting Swift Testing framework, making tests run faster without simulator, architecting code for testability, testing async code 208skills.sh installs
6microsoft avatarwinui-ui-testingmicrosoft/win-dev-skillsAutomated UI testing for WinUI 3 apps — generate a batch test script, run all tests in one pass, read results. Covers element assertions, interactions, value ch201skills.sh installs