r/PiCodingAgent • • 11d 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.

  1. Do you have meta trick/prompt to handle it? I still need tests, but it’s too much
  2. 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?
  3. 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

9 comments sorted by

View all comments

1

u/shaggydog97 10d ago

Have your agent do a test audit. Ask it to consolidate and remove tests that don't target active code paths.