SWE 637 Homework 5
Control Flow Coverage Tools
Use a Java code coverage tool to build and analyze
a test set for
for some class in
(You can find the source code with Google.)
You should strive to get the coverage as high as possible.
To execute the code in isolation,
you may have to change the code in some minor ways
(eg by renaming).
You may also remove some code if it proves especially problematic for you.
You should document any changes you made for test purposes.
Notice that the classes vary quite a bit in size.
You should turn in a report
- Demonstrates clearly that you, in fact, completed the assignment.
- Reports on any technical twists and turns you
encountered along the way.
- Gives the actual tests.
You should format your tests as JUnit tests.
As for which tools to use, you may wish to start by googling
"java test coverage".
In the past, many students have used the
If you can find them, you are also welcome to
analyze the existing tests (presumably JUnit) that go with any of the existing Java code.
If you opt for this route, instead of analyzing
coverage on a single class,
you should analyze something larger.
Your deliverable is still a report,
but you should only provide a link to the actual tests.