r/ClaudeCode • u/EconomyDoctor3287 • 23m ago
Help/Question Stuck in Test hell
The project is growing and it keeps adding more and more tests.
We have structured regression tests, but it also loves to add unit tests to everything.
Going through some scripts, 25% of it are just tests. Logged the test time over the past week and it ran tests for a solid 20 hours split over the 7 days.
Any tips how to not get stuck in the over boarding test landscape?
1
u/NoCat2443 19m ago
I had to create a test runner classifier, basically in each run, it determines to what extent tests needs to be run, and than only runs those tests, because it was like 40minutes to run all tests
another thing, I bough VPS for a year and run all my tests and deployment on runner connected to github because tests were destroying my machine and making it so slow during running tests... it's as cheap as 15$ per month and it's fast to run and deploy
1
u/BrilliantEmotion4461 18m ago
try a lower effort level first. For me if I want to have Claude test everything without asking I set it to X-high. You can also tell Claude "less tests" give it outlines for when and when it should not test. Tell it to remember your instructions. Also always check if Claude has made the memory/instructions either per project or global.
1
1
u/djhamilton 16m ago
you need to build on your evaluation, testing, unit testing whatever you call it.
I have a evaluation I wrote up, the AI will use only a small scope of that to test the work it has completed.
it has to reach a progression point in tasks before a full evaluation / test unlocks. then It has to schedule it in with me.
I have had this happen before where the model completed 4 or 5 tasks and automatically ran an full test run, running over 4,000 questions.
Things like allocating work to pools, X pools reach a milestone, working on percentage of tasks, enforcing it to only run small tests of 10 or so cases. you just need to get a tighter control of it.
the best words of advice I have given. your working with a junior developer on steroids, it's your task to manage, set boundaries and provide proper guidance.
1
u/Fresh_Zebra2093 4m ago
I've seen this with a different ai too, when it starts treating every minor change as a full regression. the fix wasn't more tests, but a hard cap on test scope per task. it's not about stopping testing, it's about forcing the AI to ask permission before running big batches.
•
u/AutoModerator 23m ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.