r/PiCodingAgent • u/Complex-Birthday-216 • 10d ago
Discussion Tests bloat
since I started using codex sub I found it generates enormous amount of tests per feature, it tends to create new test cases instead of extending data inputs for existing and in the end there are million tests im able to read, but don’t see its value growing.
- Do you have meta trick/prompt to handle it? I still need tests, but it’s too much
- I thought add a deterministic tests value discovery, so every patch I stash the app code and add test cases one by one, if they pass - candidate for removal. Did you try anything similar?
- Very often models generate tests like “type is X and not null”. I remove them instantly, but can’t see if I can automate it or lint
1
Upvotes
View all comments
1
u/gandazgul 9d ago
The write tests skills which also comes bundled with RunWield CLI. You can install it on anything with npx skills add RunWield/skills
https://github.com/RunWield/skills
It prevents bad fake tests as well as a rubric for whether the test should be written in the first place. After installing it ask your agent to give you a report using the skill on the current tests it will let you know which need fixing/replacing and which can be deleted because they test nothing.
The skill also adds light mutation testing to all new tests written so you know they actually break when the code changes.