numaru / vscode-ceedling-test-adapter

Ceedling Test Adapter for the VS Code Test Explorer
MIT License
37 stars 14 forks source link

Add a testCommandArgs option to be able to run gcov #51

Closed numaru closed 4 years ago

numaru commented 4 years ago

It should fix #48.


I have been able to use the Coverare Gutters extension on Windows.

settings.json

{
    "ceedlingExplorer.testCommandArgs": [
        "test:${TEST_ID}",
        "gcov:${TEST_ID}",
        "utils:gcov"
    ],
    "coverage-gutters.xmlname": "GcovCoverageResults.xml",
    "coverage-gutters.coverageReportFileName": "**/GcovCoverageResults.html",
}

and after installing gcovr as described in the ceedling documentation I added the following lines to my ceedling project file.

project.yml:

:gcov:
  :html_report: true
  :xml_report: true

image