Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extracting coverity .csv file from coverity server

Tags:

coverity

How to extract .csv file from Coverity server in command line.

please Explain Command cov-manage-im with example.

Is there any need to install Coverity in Windows, though I have access to the website and can manually download the .csv file

like image 372
panchanan Avatar asked Apr 07 '16 09:04

panchanan


3 Answers

For those who came here looking to export CSV using the web interface to the Coverity server, if you open the menu sidebar, then in the "Issues by ..." and "File" sections, each subsection has a drop-down option "Export CSV" which does the job !

like image 117
MikeW Avatar answered Nov 08 '22 14:11

MikeW


This is clearly explained in Documentation:

Show all defects in 'proj' project

You basically need to use --mode defects to query defects and --show to output in csv format

cov-manage-im --host <host> --port <port> --user id --password pwd --mode defects --show --project proj

You can add fields as

cov-manage-im --host <host> --port <port> --user id --password pwd --mode defects --show --project proj  --fields cid,severity, classification ..

And add filters as

cov-manage-im --host <host> --port <port> --user id --password pwd --mode defects --show --project proj  --fields cid,severity, classification .. --status Fixed --class Bug --severity Major ...

and so on and so forth. Just look at detailed documentation on your Coverity Connect instance

like image 42
Waleed Mansoor Avatar answered Nov 08 '22 12:11

Waleed Mansoor


As I also needed to download Coverity report as CSV, using the web-ui, I attach here a screenshot, to better explain how this is done.

At the view panel, select the view you want to export (here it is High Impact Outstanding)

select the view you want

now click on the down-arrow and select 'Export CSV' click on the down-arrow and select Export CSV

like image 41
Eliyahu Machluf Avatar answered Nov 08 '22 13:11

Eliyahu Machluf