Different Inspection settings in Production vs. Test.


I think it would be nice to have certain inspections silenced in unit-tests. For example inspection  Constant conditions & exceptions fires on line like assertEquals(123, foo.nullableMethod()). Although inspection warning is pretty useful in regular code, in unit-tests it only adds noise.

1 comment
Comment actions Permalink

Please see: http://www.jetbrains.com/idea/webhelp/configuring-inspection-for-different-scopes.html

BTW, in IDEA 14 this UI is being redesigned, so if you use IDEA 14 EAP, this information may turn obsolete after a short time. But the feature will stay anyway, this or that way.



Please sign in to leave a comment.