-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Test compatibility with other tools #17
Comments
coverage.py Sample<coverage branch-rate="0" branches-covered="0" branches-valid="0" complexity="0" line-rate="0.6500" lines-covered="65" lines-valid="100" timestamp="1635484070186" version="6.0.2">
<packages>
<package branch-rate="0" complexity="0" line-rate="0.6500" name="one" />
<package branch-rate="0" complexity="0" line-rate="0.6000" name="two" />
<package branch-rate="0" complexity="0" line-rate="0.7000" name="three" />
</packages>
</coverage> (Details not relevant to CCS omitted.) |
Tried it with simplecov & simplecov-cobertura, and it failed, but that may be caused by the options I have enabled not being supported by simplecov? If that's the case this error should be handled more gracefully or avoided altogether. Here's the log:
Going to tweak options and see if I can get it working. |
Simplecov Sample (Ruby, branch coverage not enabled)
|
Hi @pboling thanks for the sample, that's always useful. Looking at the sample there are no branch metrics on coverage or package nodes. Unfortunately the It's funny how many different ways different tools can output what is supposed to be the same format. I'll need to make some changes to prevent attempting to calculate metrics that don't exist in the data. |
@irongut Branch coverage can be turned on, but I've never tried it. I'll see what that generates now. But, yeah, definitely good to support the lack of any specific feature. Always assume the null case :) |
@pboling Looking at the docs, enable branch coverage but leave primary coverage set to the default of line. That should be compatible with the current version of CCS. I'll add a note to the CCS docs and include a fix for missing branch rate in the next version. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days. |
This issue was closed because it has been stale for 30 days with no activity. |
NOTE: the suggested config is working. I wrote up a how to on dev.to. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days. |
This issue was closed because it has been stale for 30 days with no activity. |
Feature Request
CCS has been tested with Coverlet and gcov, test with other tools that output Cobertura format.
Expected Behaviour
Obtain sample Coberura output from as many testing tools as possible, CCS should parse them correctly.
Additional Context
Linked To
#20 What does complexity mean? (issue with coverage.py)
#22 Allow hiding some output values
The text was updated successfully, but these errors were encountered: