SWE 437 Homework 5
Fall 2018
Control Flow Coverage Tools
Use a Java code coverage tool to build and analyze
a test set for
for some class in java.util
.
(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
that
- 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.
Notes:
-
As for which tools to use, you may wish to start by googling
"java test coverage".
In the past, many students have used the
Emma tool.
-
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.