Best practices for keeping JUnit testing up to date -
Best practices for keeping JUnit testing up to date -
i have been given tasks of re-organization , documentation of bunch of junit tests, 1800, have little documentation , not organized well. know best practice organizing unit tests , keeping documentation them date? going forward, want able determine if test aspect of our code exists prevent unit test duplication , wasting time looking existing test. sure others have experienced joy of organizing , maintaining big amounts of unit tests, advice on appreciated.
you utilize code coverage tool cobertura create study shows parts of code exercised during test run.
of course, beingness exercised not mean test contains meaningful , sufficient assertions, @ to the lowest degree shows areas not have tests @ all.
going forward, before changing code, create sure there test case before modifying code. when filing bug report, write test case shows faulty behaviour. junit useful regression tests, , that, need have cases parts of code updating.
unit-testing testing documentation junit
Comments
Post a Comment