Audit intermediate Works with: Any AI

Test Pyramid Balance Review

Table output Has example

Check the mix of unit, integration and end-to-end tests.

The Open buttons send the prompt text as currently shown below to that site only when you click. Fill in the placeholders first.

Rate this prompt

Loading ratings…

Review the balance of tests. Number of tests at each level and their run times: [TEST_COUNTS_AND_TIMES]. Where most bugs have appeared: [BUG_LOCATIONS].

Calculate the share of tests and the share of run time at each level, with arithmetic. Compare with bugs found at each level. Identify over-reliance on slow end-to-end tests, missing integration tests and gaps in fast unit tests for logic.

Return a table and a rebalancing plan with realistic numbers, plus the signs that the shape is improving, such as shorter feedback time.

Add a worked calculation: 800 tests; 600 unit (75 percent) taking 3 minutes, 150 integration (19 percent) taking 7 minutes, 50 end-to-end (6 percent) taking 20 minutes; total time 30 minutes, of which end-to-end is 67 percent. Bugs found last quarter: 5 in unit tests, 12 by users in production in areas with no integration tests. Plan: add 40 integration tests over two months, move 10 end-to-end checks down a level and aim for a total run under 20 minutes.

Add a short rule: when a bug reaches production, add a test at the lowest level that would have caught it, and record the level chosen, so that the balance improves from real failures.

Fill in before use

Optional: type your details and the prompt above updates. Nothing is saved or sent.

Replace each bracketed placeholder with your own details, then paste into Any AI or another assistant.

See an example result (fictional data)
Invented counts. Unit 600 tests (75 percent of 800), 3 minutes. Integration 150 (18.75, about 19 percent), 7 minutes. End-to-end 50 (6.25, about 6 percent), 20 minutes.
Total time = 3 + 7 + 20 = 30 minutes; end-to-end share = 20 / 30 = 67 percent.
Bugs last quarter: 5 found by unit tests, 12 found by users in areas without integration tests.
Plan: add 40 integration tests over two months; move 10 end-to-end checks down a level; target under 20 minutes.

Illustrative only, made-up data. Your results will differ and must be reviewed.

Related prompts