agentsclimarketplace

Test automation strategy

Skill almasumdev/awesome-mobile-testing-agent-skills/.github/skills/automation/test-automation-strategy

Agent skills for unit, widget, UI, and end-to-end testing of mobile apps across platforms.

Install
npx -y skills add almasumdev/awesome-mobile-testing-agent-skills --skill test-automation-strategy

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Expert guidance on scoping test automation investments, assigning ownership, choosing quality metrics, and keeping a mobile test suite economically viable. Use when asked "what should our test strategy be?" or when the test suite is becoming a cost center.

SKILL.md

4.7 KB, ~1.1k tokens by cl100k_base, as published. Nobody here has run it

Test Automation Strategy

Instructions

A test suite is an asset until it is not. Once maintenance cost exceeds the bugs caught, the suite is a liability. Strategy is about keeping the suite on the asset side of that line.

1. Start From the Business Risk

List the top risks for the app, ordered by impact and likelihood:

  1. Cannot sign in (all platforms).
  2. Cannot complete checkout / core action.
  3. Crashes on cold launch on minimum supported OS.
  4. Data loss on upgrade.
  5. Accessibility regressions that trigger legal exposure.

Every risk maps to exactly one test layer that should catch it first. Avoid covering the same risk at three layers — you pay three times and still get one signal.

2. Pyramid, Weighted by Cost and Signal

LayerCost to RunCost to MaintainSignal
UnitLowestLowestLogic correctness
IntegrationLowLow-MediumWiring and serialization
UI componentMediumMediumComponent behavior and a11y
ContractLowLowClient/server mismatch
SnapshotLowMedium (review cost)Visual regressions
E2EHighestHighestEnd-to-end wiring, release-blockers

Aim for ~70/20/10 (unit+integration / UI / E2E) by test count. Measure it; do not guess.

3. Ownership

Every test file has exactly one owning team, declared explicitly:

// @owner: payments
// MARK: owner: identity

Unowned tests rot. When an owning team dissolves, the tests migrate or are deleted within one sprint.

4. Quality Metrics That Matter

Track these; publish them monthly:

  • Escaped defect rate — bugs that reached production per release. The ultimate test-suite metric.
  • PR feedback time — median time from PR open to CI complete. Under 15 min is aspirational; under 30 min is healthy.
  • Suite flake rate — percentage of CI runs with at least one non-code-related failure.
  • Coverage trend by package — not a single number. Target: trend up for new features, stable elsewhere.
  • Test maintenance cost — % of PRs whose sole purpose is to fix or update tests.

Coverage as a gate number (e.g., "80 %") by itself is a weak signal. Track it, but do not fail builds on it.

5. Where to Invest Next

Use this triage loop each quarter:

  1. Identify the top 5 escaped defects of the last quarter.
  2. For each, ask: "what cheap test would have caught this?" Add or update that test.
  3. Identify the 5 flakiest tests; fix or delete them.
  4. Identify the 5 slowest tests; optimize or demote them to nightly.
  5. Delete any test that has not failed in 12 months and is not required for a risk above.

6. Scoping a New Feature

When a feature is planned, the automation plan accompanies the design:

  • Which unit tests cover the pure logic?
  • Which integration tests cover the seam to storage/network?
  • Which UI tests cover the new screens (component level)?
  • Which smoke or regression E2E flow, if any, is affected?
  • Which a11y checks are required?

A feature without an automation plan is not ready to merge.

7. Test Code Quality

Tests are code and deserve the same review discipline:

  • No duplicated setup bigger than a couple of lines — extract to builders / mothers.
  • No commented-out tests. Delete or fix.
  • No @Ignore / xit without a linked ticket and a deadline.
  • Lint test code with the same rules as production where possible.

8. Sunsetting Tests

Delete aggressively. Candidates:

  • Duplicated by a cheaper layer.
  • Always-green for 12+ months on a non-critical path.
  • Quarantined for 30+ days.
  • Tied to a feature that has been removed or hidden behind a killed flag.

Deleting tests is a positive act; the remaining suite becomes more trusted.

9. Communicating Strategy

Make these visible, not tribal:

  • A one-page "how we test" doc linked from the README.
  • A dashboard for flake, duration, and escaped defects.
  • A standing slot in release retro to inspect the numbers.

10. Checklist

  • Top business risks are enumerated and each has a primary test layer.
  • Each test file has a single owner.
  • Monthly metrics include escaped defects, PR feedback time, flake rate, coverage trend, maintenance cost.
  • New features arrive with an automation plan.
  • Suite is pruned quarterly; dead tests are deleted.
  • Quarantine has a 30-day fix-or-delete rule.
  • Tests are reviewed with the same rigor as production code.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.