Patent ID: 8381194

Claim:
A computer implemented method for executable code executed by a processing device, the method comprising: annotating source code by user requests via a user interface, wherein the annotated source code includes the source code and one or more annotation code inserted at one or more selected code locations of the source code, wherein the annotated source code corresponds to one or more source files; compiling the annotated source code for the executable code using one or more compilation settings and a switch setting, wherein the switch setting specifies whether to compile the annotation code, wherein the executable code corresponds to instructions compiled from the source code using the compilation settings if the switch setting specifies that the annotation code is not to be compiled, wherein the switch setting specifies that the annotation code is to be compiled, and wherein the executable code includes the instructions and one or more coverage instructions, each coverage instruction corresponding to one of the annotation code; executing the executable code to collect code coverage information for the selected code locations of the source code into a data store, wherein the code coverage information is associated with a portion of the instructions for the selected code locations, and wherein no code coverage information is collected for remaining portion of the instructions in the executable code; in response to receiving a code coverage request, retrieving the code coverage information from the data store; and generating a code coverage report from the code coverage information, wherein the code coverage report indicating whether one or more of the selected code locations are not covered when executing the executable code.