Skip to content

Plugin usage

OpenCppCoverage edited this page Jun 17, 2019 · 1 revision

How to install an export plugin

Export plugin requires OpenCppCoverage 0.9.8.0 or greater.

To use an export plugin, copy the plugin dll into {INSTALLATION_FOLDER}\Plugins\Exporter. This folder already exits so you must not create it.

Make sure you use the same platform (x86 or x64) for both OpenCppCoverage and plugin!

To check the installation, run the command OpenCppCoverage --help. In the description of --export_type you should see the name of the plugin.

How to use an export plugin

Plugins use the same syntax as the other exports.

OpenCppCoverage --export_type PLUGIN_NAME:ARGUMENT -- YourProgram.exe

where PLUGIN_NAME is the filename without extension of the plugin dll and ARGUMENT is a plugin specific argument.

Here is an example to export using SimpleText plugin on file Output.txt.

OpenCppCoverage --exportType SimpleText:Output.txt -- YourProgram.exe

List of available plugins

Clone this wiki locally