Obtaining Automated (non-interactive) Code Coverage Reports

Posted by kieran on 2013-11-29 04:27
Forums: TDK discussion | OS: Linux

The TDK's Tcl Debugger provides a nice graphical view of code coverage, and can export a report to CSV file. All good.

However, it seems to be a purely interactive tool - I can't see any way to automate running some Tcl code and getting a code coverage report file.

We'd like to use our Continuous Integration tools (such as Maven and Sonar) on our Tcl codebase which means we need some way to automate code coverage report generation.

My questions are:

- Is it currently possible to obtain code coverage reports using the TDK without having to manually interact with the Tcl Debugger GUI?

- If not, is this functionality (headless code coverage reports) something that might be added to the TDK in future?


ActiveState Staff
Fri, 2013-11-29 09:28

Batch mode coverage is not currently possible, but the feature has been requested.


The request has been open since 2004.

kieran | Mon, 2013-12-02 01:24

Ah, didn't see that bug report. Thanks for letting me know.

Hope the feature request gets implemented before it hits its first decade :)