PromptSharp › Prompt Library › Dev & Engineering › Test-suite triage: which slow or redundant tests to fix, merge, or delete

TestingFREE

Test-suite triage: which slow or redundant tests to fix, merge, or delete

CI takes forty minutes and nobody trusts which tests matter. Triage the suite so it gets faster without losing the tests that catch real bugs.

The prompt — copy and run it

You are a test engineer triaging a slow test suite. I will paste a test timing report, the test names grouped by area, and any data on which tests have caught real failures.

Produce:

A) TIME MAP — where the time goes: the slowest tests and areas, and the share of total runtime each accounts for, computed from my report.

B) TRIAGE TABLE — for each slow or suspicious test: keep, speed up (with how: fake the dependency, smaller fixture, move down the pyramid), merge (with the duplicate it overlaps), or delete (with the reason), plus the risk of that choice.

C) DUPLICATE COVERAGE — groups of tests that appear to assert the same behavior, and the one to keep from each group.

D) PROTECTED LIST — tests that must stay even if slow, because they have caught real failures or cover high-risk behavior.

E) PLAN — the order of changes with the expected time saved, and how to confirm coverage did not drop.

Inputs: [PASTE TEST TIMING REPORT] · [PASTE TEST NAMES BY AREA] · [TESTS THAT HAVE CAUGHT REAL BUGS, IF KNOWN] · [CI SETUP + PARALLELISM]

Rules: Do not invent timings or failure history — compute only from my report and mark unknowns. Verify that deleted or merged tests do not reduce coverage of the behaviors on the protected list before removing them. Keep proprietary code and internal identifiers out of consumer AI tools beyond the names I pasted.
Got what you needed? Get a sharp, copy-paste prompt like this in your inbox most weekday mornings — start PromptSharp Daily, free →

How to use this prompt

  1. Copy the full prompt above with the Copy button.
  2. Fill in your inputs. Replace each bracketed placeholder with your specifics: [PASTE TEST TIMING REPORT][PASTE TEST NAMES BY AREA][TESTS THAT HAVE CAUGHT REAL BUGS, IF KNOWN][CI SETUP + PARALLELISM]
  3. Paste into ChatGPT, Claude, or Gemini and run. Read the reality guardrail below before you act on the output.

Why this prompt works

Slow suites get faster in the wrong way when people delete whatever is slowest. Mapping where the time goes, giving each test an explicit keep, speed up, merge, or delete decision with its risk, and protecting tests with a record of catching real bugs keeps the safety net while cutting runtime. Confirming coverage after the change turns the cleanup into a measured result.

Get a prompt like this in your inbox

The PromptSharp Dev Brief ships one desk-ready prompt every weekday — free on the web today. Free forever. Today's Dev & Engineering issue is live on the web right now — subscribe and we email you the sample issue immediately, then the Dev & Engineering daily by email most weekday mornings, plus a Sunday roundup. Unsubscribe anytime.

Subscribe free → Read a sample issue

Want the full PromptSharp Dev Brief, not just the free prompt? Vertical Pro is the full Pro benefit set for ONE vertical. See what Pro includes.

Start your 14-day free trial →

Card required. Free for 14 days, then $14.99/month — renews automatically until you cancel. Cancel anytime before day 14 and you won’t be charged. One free trial per card. Manage or cancel anytime.

Reality guardrail: this prompt makes the model reason from data you paste — it does not source or verify facts for you. Check every claim, keep confidential data out of consumer AI tools, and follow your employer's AI-use policy.

Frequently asked

When should I use this prompt?

CI takes forty minutes and nobody trusts which tests matter. Triage the suite so it gets faster without losing the tests that catch real bugs.

Why does this prompt work?

Slow suites get faster in the wrong way when people delete whatever is slowest. Mapping where the time goes, giving each test an explicit keep, speed up, merge, or delete decision with its risk, and protecting tests with a record of catching real bugs keeps the safety net while cutting runtime. Confirming coverage after the change turns the cleanup into a measured result.

What mistake does this prompt help you avoid?

Speeding up CI by deleting whatever is slowest: each test gets an explicit decision with its risk, and tests with a record of real catches are protected.

Related Dev & Engineering prompts

Dev & Engineering

RFC skeleton: pressure-test the design before you write the code

You're about to build something non-trivial. Draft an RFC that names the tradeoffs and the rejected alternatives, so review is rea…

Dev & Engineering

Test-plan generator: risk-ranked cases from a diff or spec

Feature complete, coverage thin. Generate the test plan ranked by what would actually hurt in production.…

Dev & Engineering

Edge-case hunt: the failure inputs your happy-path tests will miss

Your tests pass but you don't trust them. Enumerate the boundary and failure cases that the happy path never touches.…

Dev & Engineering

Legacy-code characterization tests: pin what the module DOES before you dare touch it

You have to change an untested legacy module and you don't fully trust what it does. Wrap it in behavior-pinning tests that docume…

Dev & Engineering

Stack-trace triage: from a wall of errors to the two likeliest root causes

Production is throwing and the trace is a mess. Narrow it to the two most probable causes and the fastest way to confirm each.…

Dev & Engineering

Flaky test investigation: separate the race condition from the environment

A test fails one run in twenty and the team has started re-running CI until it passes. Find out whether the flake is in the code, …

Dev & Engineering

Design doc skeleton with the alternatives you'll actually be asked about

New system or big refactor. Draft the design doc with real alternatives and failure modes before the review meeting drafts it for …

All Dev & Engineering free prompts

The PromptSharp Dev Brief page — five full free prompts plus today's issue.

PromptSharp Daily — free

The cross-vertical sampler: one sharp, copy-paste prompt most weekday mornings, plus a Sunday roundup, rotating across the roster. Two things in one brief: you get better at AI and prompting, and you see the sharpest prompts from across the network. If a day's issue misses our quality bar, we hold it instead of padding your inbox.

Double-opt-in. Unsubscribe anytime. No spam, ever.

Better together
Make prompts remember you: Brainfile

Even a sharp prompt starts from zero unless your AI knows you. Brainfile is persistent context — your work, voice, and priorities loaded into every session. Brainfile is the memory; PromptSharp is the playbook. Together they compound — the same prompt gets sharper because it runs on YOUR context.

Set up your brainfile →

Want both? The All-Access + Brainfile annual bundle covers the pair.

PromptSharp — sharp prompts for professionals.
Home · Daily Issues · Prompt Library · Glossary · Pricing · For Teams & Universities · Archive · PromptFluent alternative · Newsletter · Privacy · Terms · Refunds
Verticals
Marketing · Sales · Dev & Engineering · Finance · Product Management · Vibe Coding · C-suite · Consulting & Strategy · Law · CPG · Personal Finance · Career & Job Search · Trading · Health & Fitness · Students · Focus & Productivity · Learning · Travel Planning
Talk to us
[email protected]
[email protected]
Also from us
Entry Point Trading
Free weekly stocks to watch —
how our model ranks the S&P 500 and Nasdaq 100.
PromptSharp prompts are drafted with AI assistance and human-reviewed. They structure how a model reasons over data you provide — they do not source or verify facts for you, and you own every output. Nothing here is financial, legal, tax, or investment advice. Never paste confidential, client, or material non-public information into consumer AI tools; follow your employer's AI-use policy. © 2026 PromptSharp.