splungebob splungebob - 1 year ago 208
Linux Question

Extract results from Coverity

I need to find a way to extract Coverity results (new defects only) via the command line for reporting purposes.

Our team is running Coverity (version 6.5.3) on a nightly basis (linux platform), and the results can be viewed through Firefox via Coverity Connect.

When the Coverity script runs, it collects metrics via "cov-analyze" or "cov-analyze-java", then commits the results via "cov-commit-defects".

I've tried to analyze the output from the Coverity run looking for a file that shows the defects count, but my problem is that all I can find is the raw count of defects found, not the total of untriaged defects. Clearly after the commit, Coverity knows which are new defects vs. old defects that have already been triaged, and only reports the new.

I thought maybe there'd be an export utility in Coverity, but I'm not seeing it.

Answer Source

If you upgrade to Coverity Connect 8.0 then there is.

There is an API to export views in CC. You can export them as either XML or CSV. IIRC, there is a way to invoke it from cov-manage-im as well.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download