
Compare Test Case
Compares a single test case's behavior across two branches, analyzing pass/fail status...
Install
npx skills add tuist/tuist --skill compare-test-case -g -a claude-code -y- Repository
- tuist/tuist5.9k
- Category
- Testing
- Updated
- 3d ago
- License
- See repository
- Context cost
- Lightabout 1,248 tokens
- Runs scripts
- No, instructions only
What it does
Compares a single test case's behavior across two branches, analyzing pass/fail status, duration, flakiness, and failure details. Useful for investigating test regressions introduced by a feature branch.
Compare Test Case
Quick Start
You'll typically receive a test case identifier and two branches. Follow these steps:
- Run
tuist test case show <id-or-identifier> --jsonto get the test case metrics. - Run
tuist test case run list <identifier> --jsonto see runs across branches. - Compare behavior between base and head branches.
- Inspect failures with
tuist test case run show <run-id> --json. - Summarize findings with root cause analysis.
Step 1: Resolve the Test Case
By ID or dashboard URL
tuist test case show <test-case-id> --json
By identifier (Module/Suite/TestCase)
tuist test case show Module/Suite/TestCase --json
If no test case is provided
Discover flaky or failing tests to investigate:
tuist test case list --flaky --json --page-size 10
Key fields from the response:
id-- unique identifier for subsequent commandsname,module_name,suite_name-- the test identityreliability_rate-- percentage of successful runsflakiness_rate-- percentage of flaky runs in the last 30 daystotal_runs/failed_runs-- volume contextis_flaky/is_quarantined-- current flags
Step 2: Get Runs on Each Branch
List test case runs filtered by the test case, and look at the git_branch field:
tuist test case run list <identifier> --json --page-size 20
Separate runs by branch. For each branch, compute:
- Pass rate:
passed_runs / total_runs * 100 - Average duration
- Flaky run count
- Most recent status
Defaults
- If no base branch is provided, use the project's default branch (usually
main). - If no head branch is provided, detect the current git branch.


