kcov icon indicating copy to clipboard operation
kcov copied to clipboard

Feature request: --report-format=xml,json,vendorName

Open williamdes opened this issue 1 year ago • 5 comments

It could be nice to filter the type of report to produce, this would save some computing time

What do you think ?

williamdes avatar Jul 14 '24 19:07 williamdes

There's --cobertura-only, which I use for vscode (see doc/vscode.md), but nothing in general.

I think the main advantage is less clutter, since performance is typically dominated by the breakpoints anyway.

SimonKagstrom avatar Jul 14 '24 19:07 SimonKagstrom

Could we have an option to not have the .so files and html stuff ? Only report files (xml/json)

williamdes avatar Jul 15 '24 10:07 williamdes

Well, it's basically what --cobertura-only does:

ska@Simons-MacBook-Air kcov % ls /tmp/kcov
cov.xml		coverage.db

but the so-files are needed (well, sometimes) for execution and needs to be stored somewhere. I guess they could be removed afterwards, but I tend to see the output directory as ephemeral anyway so typically just delete the entire directory when I'm done.

Anyway, I think your feature makes sense, and --cobertura-only would then be a special case meaning the same thing as --report-format=xml.

SimonKagstrom avatar Jul 15 '24 15:07 SimonKagstrom

Anyway, I think your feature makes sense, and --cobertura-only would then be a special case meaning the same thing as --report-format=xml.

Good idea Is there only one output format ? Maybe they should be documented because I could not figure it out myself :)

williamdes avatar Jul 17 '24 11:07 williamdes

Anyway, I think your feature makes sense, and --cobertura-only would then be a special case meaning the same thing as --report-format=xml.

Good idea Is there only one output format ? Maybe they should be documented because I could not figure it out myself :)

Yes, there are 6 in total. They are documented via the README, but for now they have all always been written so no specific options (except for coveralls-only, which is mainly for vscode).

SimonKagstrom avatar Jul 17 '24 12:07 SimonKagstrom