XmlExporter is a Plugin for OpenCppCoverage(requires OpenCppCoverage 0.9.8.0 or greater).
To use XmlExporter, copy the plugin dll into {OPENCPPCOVERAGE_INSTALLATION_FOLDER}\Plugins\Exporter
.
I recommend copying and renaming XmlExporter.dll
as follows.
Copy-Item -Path XmlExporter.dll -Destination "C:\Program Files\OpenCppCOverage\Plugins\Exporter\xml.dll"
To check the installation, run the command OpenCppCoverage --help
. In the description of --export_type
you should see the name of the plugin.
If you see xml
in --export_type
list, you can use XmlExporter.
OpenCppCoverage ^
--export_type xml:coverage.xml ^
--sources C:\path\to\source ^
-- ^
YourProgram.exe