XpdWiki
Set your name in
UserPreferences Edit this page Referenced by
JSPWiki v2.0.52
![]() ![]() |
I am playing with trying to generate (retrofitting to existing code) JUnit suite skeletons (more as a way of teaching myself parsing ASTs than creating something amazing) and am trying to decide how to proceed. I am caught between identifying and testing unique paths through a method versus just making sure the code is covered by at least one test (or is there a magical middle ground?). I would appreciate your comments - I am sure generating test skeletons for every possible path through a method would get big and ugly (exponential with nested conditionals etc) - but I feel uneasy about a situation where one test doesn't enter any conditional segments - and one test does (simple example) but you lose testing the impact of previous activities in combination. Argh. -- DanPollitt There's a nice article about the different kinds of coverage here: http://www.testing.com/writings/coverage-terminology.html ![]()
|