java - How to enforce JUnit assert messages? -
all junit assert methods have optional first parameter being message printed when assertion fails.
how ensure parameter passed, , developers in project never lazily skip describing assertion doing?
is there inspection tool can check that? there can programmatically?
my project maven-friendly.
as code inspection seems aim, recommend tool called pmd. if there not rule this, think trivial create one. furthermore, in detecting other code mess developers may creating.
here link: http://pmd.sourceforge.net/
Comments
Post a Comment