For the complete documentation index, see llms.txt. This page is also available as Markdown.

C++ Agent for Windows (Beta)

The MSVC agent instruments Visual Studio and MSVC builds for SeaLights code coverage and Test Impact Analysis. It injects instrumentation through MSBuild targets without modifying .vcxproj files. The self-contained SL.Agent.Cpp.exe runs without a .NET runtime.

This agent differs from the Linux/GCC agent. The Linux/GCC agent uses compiler flags and LD_PRELOAD.

Prerequisites

Confirm your environment meets these requirements before you begin:

  • Windows 10 or Windows Server 2016 or later

  • Visual Studio 2017 or later with toolset v141 or later, MSVC, and MSBuild on PATH

  • Google Test v1.10 or later for test event capture and Test Impact Analysis. Earlier versions collect coverage data only.

  • No .NET runtime installation. The agent runs as a self-contained .exe.

Workflow overview

  1. Download the agent

  2. Inject MSBuild targets and rebuild

  3. Run your tests with coverage

    • Capture test events

  4. Parameter reference

Last updated

Was this helpful?