I am familiar with several code coverage tools that tell me what percentage of lines / branches / etc. covered by my tests, and even show which parts of the code have poor coverage.
Are there any tools that do the opposite, that is, given the code section, can it show me which tests relate to it? This will make it easy to start learning unfamiliar and poorly documented code, playing with the appropriate tests.
You could say that this should be obvious from how the unit tests are organized, but the fact that this often happens is not the case. I worked with several projects where this was so.
I think I'm interested in java / scala, but I'm also just wondering if something is doing this or just a completely crazy idea.
source
share