Detecting methods only used in tests

While the finding unused methods is quite easy with R#, we came across a
problem where we have methods that are only called from tests, but have
no use for the productive code anymore. This happens when a
functionality is removed and the unit tests are not updated at the same
time.

Even though it is the developers fault, this should be "fairly easy" to
detect as R# knows what a Unit Test is and what it does call. This would
really help during refactorings.

Does this make sense?

Many Thanks,
Philip

1 comment
Comment actions Permalink

Hello Philip,

  There is a similar ticket in YouTrack https://youtrack.jetbrains.com/issue/RSRP-288062.

Thanks!

0

Please sign in to leave a comment.