Instrumenting an Executable File

LiveCoverage uses a patented technology which inserts probes into your program as it is running to monitor test coverage. As a result, it is not necessary to "instrument" your program in the way other test coverage tools would.

There is still an option to instrument your program. But with LiveCoverage, this refers only to adding a tiny slice of code that "wakes up" LiveCoverage whenever your program starts running. Without it, LiveCoverage must launch your program (at least indirectly) to monitor test coverage.

Tips on Choosing

If you will be running tests manually or semi-manually, it is usually simplest to have LiveCoverage start your program for you without using instrumentation.

If you have a fully automated test suite of significant complexity, then instrumentation is the surest way to get test coverage working quickly.

Here are the pros and cons of using and not using instrumentation:

Using Instrumentation

Advantages
Disadvantages

No Instrumentation

Advantages
Disadvantages

Once You've Chosen

Once you have chosen whether or not to use instrumentation, you must set the project's properties accordingly. By default, a new project will not be set to use instrumentation.

Use the Properties command on the Test menu to display the project's Properties dialog. The dialog contains one page for the Project Properties, plus one page of Executable File Properties for each executable file in the project. Make the following changes:

To Use Instrumentation
Not Using Instrumentation