compare-test-runs
하는 일
이 스킬은 Tuist의 두 테스트 실행을 비교합니다. 예를 들어 main과 기능 브랜치의 실행을 비교합니다. 변경이 테스트 결과에 어떤 영향을 줬는지 보려는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓기능 브랜치에 main과 비교해 새 테스트 실패가 생겼을 때.
- ✓고쳐졌거나 불안정해진 테스트를 확인하고 싶을 때.
- ✓테스트 시간이 늘어서 어디서 늘었는지 알고 싶을 때.
스킬 링크
https://github.com/tuist/tuist/blob/main/skills/skills/compare-test-runs/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“내 브랜치의 최신 테스트 실행을 main과 비교해서 새로 생긴 실패를 목록으로 보여 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트가 두 테스트 실행과 모듈, 스위트, 테스트 케이스별 결과를 읽고, 실패, 불안정한 테스트, 소요 시간을 비교해 무엇이 바뀌었는지 요약합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Compare Test Runs
Quick Start
You'll typically receive two test run identifiers. Follow these steps:
- Run
tuist test show <id> --jsonfor both base and head test runs. - Run
tuist test module list <test-run-id> --jsonandtuist test suite list <test-run-id> --jsonto get module and suite breakdowns. - Run
tuist test case run list <identifier> --jsonto get individual test case results. - Compare failures, flaky tests, durations, and overall status.
- Inspect failing test cases with
tuist test case run show <id> --json. - Summarize findings with actionable recommendations.
Step 1: Resolve Test Runs
If base/head are test run IDs or dashboard URLs
Fetch each directly:
tuist test show <base-id> --json
tuist test show <head-id> --json
If base/head are branch names
List recent test runs on each branch to identify test run IDs:
tuist test list --git-branch <base-branch> --json --page-size 5
tuist test list --git-branch <head-branch> --json --page-size 5
Pick the latest test run ID from each branch's results.
Defaults
- If no base is provided, use the project's default branch (usually
main). - If no head is provided, detect the current git branch.
Step 2: Compare Top-Level Metrics
After fetching both test runs, compare:
| Metric | What to check |
|---|---|
status |
Flag if base passed but head failed |
duration |
Flag if head is >10% slower |
total_test_count |
Note if test count changed (new or removed tests) |
failed_test_count |
Compare failure counts |
flaky_test_count |
Compare flaky counts |
avg_test_duration |
Flag significant changes |
Step 3: Get Module and Suite Breakdowns
Fetch module and suite-level results for both test runs to understand which areas regressed:
tuist test module list <base-test-run-id> --json
tuist test module list <head-test-run-id> --json
tuist test suite list <base-test-run-id> --json
tuist test suite list <head-test-run-id> --json
Match modules and suites by name across both runs to identify areas with new failures or duration regressions.
Step 4: Get Individual Test Case Results
Fetch test case runs for both test runs:
tuist test case run list <identifier> --json --page-size 100
Match test cases by their name + module_name + suite_name across both runs.
Step 5: Classify Changes
Group test cases into categories:
- New failures: Tests that passed in base but failed in head.
- Fixed tests: Tests that failed in base but passed in head.
- Newly flaky: Tests not flaky in base but flaky in head.
- No longer flaky: Tests that were flaky in base but stable in head.
- New tests: Tests present in head but not in base.
- Removed tests: Tests present in base but not in head.
- Duration regressions: Tests with >50% duration increase.
Step 6: Inspect Failures
For each new failure, get detailed information:
tuist test case run show <test-case-run-id> --json
Key fields to examine:
failures[].message-- the assertion or error messagefailures[].path-- source file pathfailures[].line_number-- exact line of failurefailures[].issue_type-- type of issuerepetitions-- if present, shows retry behavior (flaky detection)crash_report-- crash data if test runner crashed
Step 7: Inspect Attachments
The tuist test case run show output includes attachment and crash report information. Review:
- Screenshots or UI test artifacts
- Log files or crash reports
- Any diagnostic data attached to failing runs
Summary Format
Produce a summary with:
- Overall verdict: Better, worse, or neutral compared to base.
- New failures: List each with failure message, file path, and line number.
- New flaky tests: List with flakiness context.
- Fixed tests: List tests that are now passing.
- Duration: Overall and notable per-test regressions.
- Recommendations: Actionable next steps for each issue.
Example:
Test Run Comparison: base (run-123 on main) vs head (run-456 on feature-x)
Status: success -> failure -- REGRESSION
Duration: 120.5s -> 145.2s (+21%)
Tests: 342 -> 345 (3 new tests)
Failures: 0 -> 2 (2 new failures)
Flaky: 1 -> 3 (2 newly flaky)
New Failures:
1. AuthModuleTests/LoginTests/test_login_with_expired_token
Message: "Expected status 401, got 500"
File: Tests/AuthModuleTests/LoginTests.swift:42
Likely cause: Server error handling
자주 묻는 질문
무엇을 비교하나요?
실패, 새로 불안정해진 테스트, 고쳐진 테스트, 소요 시간, 전체 상태를 비교합니다.
실패한 테스트의 세부 내용도 보여 줄 수 있나요?
네. 실행에서 실패한 테스트 케이스를 자세히 확인할 수 있습니다.
Tuist가 필요한가요?
네. Tuist 명령줄 도구로 테스트 실행 데이터를 읽습니다.
상세 정보
작성자의 원본 설명
Compares two test runs to identify new failures, newly flaky tests, fixed tests, and duration regressions. Can be invoked with test run IDs, dashboard URLs, or branch names.
repo: tuist/tuist
인기도
- GitHub 스타
- 5.9k
- 순위
- #14543
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
analyze-selective-testing
5.9k에이전트가 Xcode 선택적 테스트의 건너뛰기 상태를 확인하고, 실행마다 건너뛰기가 달라진 이유를 찾도록 돕습니다.
compare-builds
5.9k에이전트가 두 Xcode 빌드 실행을 비교해 느려진 빌드, 캐시 사용의 변화, 새 문제를 찾도록 돕습니다.
compare-bundles
5.9k에이전트가 두 앱 번들을 비교해 크기 변화, 추가되거나 제거된 파일, 플랫폼 차이를 찾도록 돕습니다.
compare-cache-runs
5.9k에이전트가 두 캐시 실행을 비교해 캐시 적중률의 변화를 찾고, 캐시가 무효화된 이유를 설명하도록 돕습니다.
비슷한 스킬
test-driven-development
311k에이전트가 기능이나 수정을 만들기 전에 실패하는 테스트를 먼저 쓰고, 그것을 통과시키는 가장 작은 코드를 작성하도록 가르칩니다.
verification-before-completion
311k에이전트가 작업, 수정, 빌드가 완료되었거나 통과했다고 말하기 전에 실제 점검을 실행하고 결과를 읽도록 가르칩니다.
migrate-to-shoehorn
310k테스트 파일의 위험한 타입 캐스팅을 shoehorn 라이브러리로 바꿔, 테스트가 일부 데이터만 써도 타입 검사를 통과하도록 돕습니다.