How do I know which code is not being used when my unit tests were written?

I am developing unit tests to cover all of my code, but in IntelliJ IDEA the code no longer appears as "unused" because I have unit tests that cover them. Is there a way to exclude unit tests from this rule? Or is there another way to identify the code that is not being used?

The only solution I thought of was to remove my entire test folder from my project every time I want to identify them. But I would prefer the ideal to identify the unused code as it does when the device has not been tested. (Also, I don't need to know if the unit tests cover my code, because there is already a nice feature in IntelliJ that highlights this when testing starts.)

Using IntelliJ 13.1

+3


source to share





All Articles