mercredi 7 janvier 2015

How do I find which code is unused once my unit tests have been written?


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


The only solution I've thought of is to remove my entire testing folder from my project every time I want to identify these. But I would rather the ide identify unused code like it does when not unit testing. (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 you run testing.)


Using IntelliJ 13.1





Aucun commentaire:

Enregistrer un commentaire