We use cobertura to measure code coverage in unit testing and integrated/system testing.
Some classes are more note suitable for getting a coverage in plain unit test. (Some require database, GUI testing etc). While mock objects, stubs, gui-unit-testing framework will help here, we are considering a way to mark some classes not to be included in instrumentation.
Cobertura provides a pattern based processing to include/exclude classes. Is there a way to annotate class and skip from instrumenting?
Without above, I will have to write a custom annotation processor to get list of classes, and then user the result to skip from instrumenting phase.