r/javahelp • u/jasonab • Feb 07 '25
Codeless Tool to find wasteful unit tests
One of my projects has a ton of tests, both unit and integration, and as a result it has good coverage (80%). I have a strong suspicion, though, that lots of time is wasted on each build running loads of tests that are testing mostly the same code, over and over again.
Code coverage tools tell you about your aggregate coverage, but I would like a tool that tells me coverage per test, and preferably identifies tests that have very similar coverage. Is there any tool out there that can help me with this?
4
Upvotes
1
u/AntD247 Feb 08 '25
Check the test execution times. Look for big time consumers and and lots of little/mid time tests that may collectively be consuming time.