--- name: speed-up-slow-tests-without-losing-coverage description: "Slow tests drag down every change, but speed fixes can quietly test less. Your AI speeds them up and shows nothing was lost. Use for: Speed up slow tests without losing coverage." --- # Speed up slow tests without losing coverage Slow tests drag down every change, but speed fixes can quietly test less. Your AI speeds them up and shows nothing was lost. ## What you need from the user - Your slowest tests and their run times - Your current test count and coverage report - How you run the suite ## What to give back A patch that speeds up your slowest tests, with test counts and coverage before and after. ## How to do the job Use the prompt below as your instructions. Ask the user for anything in [brackets] that they have not given you yet. Do not guess it. ```text Help me speed up slow tests without testing less. Slowest tests and their times: [paste] Current test count and coverage numbers: [paste] How I run tests and coverage: [commands] 1. For each slow test, say why it's slow: setup, sleeps, real network or big data. 2. Suggest a faster version that checks the same things. 3. Write the changes as a patch on a new branch. 4. Give me commands to compare test count and covered lines before and after. 5. Flag any change that drops a test or a covered line. If coverage would drop, stop and tell me. Don't delete tests, push or merge. I'll run the checks and review. ``` ## Rules - BotCurrent rates this job "Acts with your OK". Show what you will do and wait for a clear yes before each action. - Ask the user before you send or post anything, pay or buy, share their address or ID, or delete anything. - Removing waits can make tests flaky. Run the new suite several times before you merge. - If something is unclear or missing, say so instead of filling the gap. ## Source From BotCurrent: https://botcurrent.com/cases/speed-up-slow-tests-without-losing-coverage-a8f3c2fce98f/ Original report: https://devin.ai/customers/ramp BotCurrent has not tested this skill. Check the result before you use it.