BullseyeCoverage Up Contents Search

Microsoft Visual Studio

Interceptors

The BullseyeCoverage installer automatically integrates with all supported versions of Visual Studio that are installed for the current user.

The compiler interceptor is BullseyeCoverage\bin\cl.exe and the linker interceptor is BullseyeCoverage\bin\link.exe. If these files do not exist, run the BullseyeCoverage Browser, use the menu command Tools Options and enable your Microsoft Visual Studio version.

Visual Studio 2017 and later

It is recommended to launch Visual Studio at least once before installing BullseyeCoverage. Otherwise, integration of the Visual Studio Tools menu fails. If the installer is invoked with the -silent option, failure to integrate the Tools menu is ignored.

Visual Studio 2010 and later

No changes to your project are necessary to use BullseyeCoverage.

Executable Directories

The installer adds the BullseyeCoverage\bin to the front of the Executable Directories setting. The modified Executable Directories setting is stored in files named %LOCALAPPDATA%\Microsoft\MSBuild\MSBuildToolsVersion\Microsoft.Common.targets\ImportAfter\BullseyeCoverage.targets.

Tools Menu

The BullseyeCoverage integration adds a command into the Microsoft Visual Studio Tools menu to enable and disable coverage build. After enabling or disabling coverage build, rebuild your project using command Build Rebuild.

Visual Studio

With Visual Studio 2010 Express, use the menu command Tools Settings Expert Settings prior to installing BullseyeCoverage. If you already installed BullseyeCoverage before making this change, install BullseyeCoverage again.

If you do not see the BullseyeCoverage menu entry, you can make this change manually using the Visual Studio menu command Tools External Tools. The settings should appear as shown in the image below. The Command setting is c:\Program Files\BullseyeCoverage\bin\CoverageBrowser.exe.

Visual Studio

For Visual Studio 2017 and later, External Tools are stored in the files named below.

For Visual Studio 2015 and earlier, External Tools are stored in the registry at HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\version\External Tools.

Batch Files

The BullseyeCoverage integration modifies the files listed below to add the BullseyeCoverage\bin directory to the PATH setting, if permissions allow.

Microsoft Visual Studio\Common7\Tools\VsDevCmd.bat
Microsoft Visual Studio\Common7\Tools\vsdevcmd\ext\vcvars.bat
Microsoft Visual Studio\Common7\Tools\vsvars32.bat
Microsoft Visual Studio\VC\bin\*\vcvars*.bat
Microsoft Visual Studio\VC\bin\vcvars*.bat

Visual Studio 2008

Launch Visual Studio at least once before installing BullseyeCoverage.

Executable Directories

The installer adds the BullseyeCoverage\bin to the top of the Executable Directories setting. If you find that coverage build does not take effect, you can verify this setting using the Visual Studio menu command Tools Options then navigate to the VC++ Directories settings in the image below.

Executable Directories

The Executable Directories setting is stored in files named %LOCALAPPDATA%\Microsoft\VisualStudio\*\VCComponents.dat.

Tools Menu

The BullseyeCoverage installer inserts a command into the Microsoft Visual Studio Tools menu to enable and disable coverage build. After enabling or disabling coverage build, rebuild your project using command Build Rebuild.

Microsoft Visual Studio

If you do not see this menu entry, you can verify this change using the Visual Studio menu command Tools External Tools. The settings should appear as shown in the image below. The Command setting is c:\Program Files\BullseyeCoverage\bin\CoverageBrowser.exe.

Microsoft Visual Studio

External Tools are stored in the registry at HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\version\External Tools.

Batch Files

The BullseyeCoverage integration modifies the files listed below to add the BullseyeCoverage\bin directory to the PATH setting, if permissions allow.

Microsoft Visual Studio\Common7\Tools\vsvars32.bat
Microsoft Visual Studio\VC\bin\amd64\vcvarsamd64.bat
Microsoft Visual Studio\VC\bin\vcvars32.bat
Microsoft Visual Studio\VC\bin\x86_amd64\vcvarsx86_amd64.bat

Command Line

You can build with BullseyeCoverage from the command prompt just as you normally do. Enable coverage build with the command cov01 -1 before building.

If you build with devenv or msbuild, you must have the BullseyeCoverage/bin in the Visual Studio Executable Directories as described above.

Updated: 12 Oct 2021