Choosing which AI-generated test cases to run with risk-based testing (AIで膨らみ続けるテストケースを、リスクベースドテストで選んで回すまでの記録)
B · Useful, limited A PIVOT QA engineer's record of building a risk-based test selection rule, with a backtest over five past releases and case counts at each iteration; transparent and practical, but one app team with a small bug sample.
Summary based on the full text·Original: about 8 minutes to read
In short
A PIVOT Tech Blog post on Zenn (November 2026) by a QA engineer and project manager for the PIVOT business-video app on iOS and Android. Once AI wrote test cases from PRDs, Figma files and PR diffs, the case count grew with each feature, and the team uses those cases as the specification, so it did not want to delete any. It chose instead to select which cases to run in user acceptance testing with risk-based testing, and to record why. The rule went through several versions; the current one assigns impact per acceptance criterion and is applied by a Claude Code skill.
Key numbers
- 277UAT cases in a single release after AI began writing test cases
- 809 of 980 (83%)cases the feature-based rule would have run across five past releases, catching 11 of 13 UAT bugs
- 92%share of cases needed to miss zero bugs in the backtest
- 1,339 → 628candidate cases for a refactoring release, feature-based rule vs revised acceptance-criteria rule
As reported by the source.
Japanese·Web page·opens zenn.dev
What it reports
- Setup: test viewpoints and case definitions live in GitHub and serve as the specification; per-release run records live in Notion. Selection happens only in run records, so no case definition was removed.
- One release reached 277 UAT cases; earlier cuts were made by eye with no recorded rationale.
- First rule: impact by feature, probability 3, 2 or 1 depending on whether behaviour changed; cases grouped into five kinds. Backtest over five releases: 809 of 980 cases (83%) run, 11 of 13 bugs caught; zero misses needed 92%. The two missed bugs were narrow and avoidable by people using the app. The team accepted running about 80% and taking the rest as risk.
- An iOS multi-module refactor set almost every feature to probability 2, giving 1,339 candidates; people narrowed it by hand in about five passes to 516.
- Second rule: impact per acceptance criterion on four levels (S1 cannot watch, S2 irreversible or revenue-linked, S3 detour or degraded, S4 add-on unusable); first allocation still gave 1,046 cases.
- Fix: for probability 2 or 1, S3 and S4 criteria run only cases for conditions with past bugs. Re-applied to the refactor release: 628 cases, before a later S4 adjustment.
- Selection is run by a Claude Code skill that gathers the release's PRs, asks the QA engineer to confirm probabilities with reasons, then selects cases by script and creates the Notion run record. The written rule document overrides the skill if they disagree.
How they got it
First-hand account with case and bug counts from the team's own release history. Each rule version was replayed against past releases to compare case counts and bugs caught.
Limits
- One mobile app; the backtest rests on 13 UAT bugs.
- The 628 figure predates the current table's S4 handling, so the live rule's count is not given.
- No measure of bugs escaping to production after the change.
- Ends with recruiting and app download links.
Why it matters for companies
AI makes writing tests cheap, so running and reviewing them becomes the constraint. The post shows a workable answer: keep the full case set as the specification, select per release with an explicit table, and record what was skipped and why so the decision can be reviewed after an incident. Its sharpest point is that finer units alone did not reduce the count; the team had to decide which low-risk criteria not to run. Backtesting a rule on past releases before using it is cheap and should be standard.
Key passages in translation
Japanese original
単位を細かくしただけでは、件数は減りません。どの基準を回さないかを決めて、はじめて減ります。
Making the unit finer does not reduce the count. It only falls once you decide which criteria not to run.
Japanese original
ケースの選び方だけで、不具合を 1 件も落とさないことと件数を大きく減らすことは両立しない。
Through case selection alone, missing no bugs and cutting the number of cases sharply cannot both be achieved.
Japanese original
ルールの正本は文書に置き、skill と食い違ったら文書を正とする決まりにしました。
We keep the authoritative rule in a document, and if the skill disagrees, the document wins.
Summary based on the full text. Read the original for the full argument and data.Read the original on zenn.dev
- Tags
- Qa