LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
bender_robotics

Get code coverage programmatically in Unit Test Framework toolkit

Status: New

Problem

I would like to create HTML report of my unit tests run together with information about project code coverage. This can be achieved if the "Generate HTML report" option is checked in Project>>Properties>>Unit Test Framework and when the tests are run via toolbar operation "Run Unit Tests". However, I want to create same HTML report with PROJECT CODE COVERAGE programmatically via "Create Report.VI" or CLI, but the report generated in this way doesn't contain the code coverage information.

Run via Create Report.vi

bender_robotics_4-1760687909082.png

Run via toolbar

bender_robotics_3-1760687866751.png

Why This Matters

This functionality can be useful for running unit tests and report creating via custom CLI operation for CI. My scenario is to use the report as an CI artifact with informative value about code coverage.

1 Comment
xadamek5@mendelu.cz
Member

I encountered the same problem. I would definitely appreciate the addition of this functionality.

Big KUDOS 👍