Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
williamdes opened this issue Jul 14, 2024 · 5 comments
Open

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

williamdes opened this issue Jul 14, 2024 · 5 comments

Comments

@williamdes
Copy link
Contributor

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

What do you think ?

@SimonKagstrom
Copy link
Owner

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.

@williamdes
Copy link
Contributor Author

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

@SimonKagstrom
Copy link
Owner

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.

@williamdes
Copy link
Contributor Author

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 :)

@SimonKagstrom
Copy link
Owner

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants