-
Notifications
You must be signed in to change notification settings - Fork 38
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
[Coverage] [-ERROR-] Found a duplicate class #29
Comments
We are running into the same problem. Given this coverage report:
We get the following error from the Jenkins Coverage plugin:
There is an open issue about a similar problem related to handling non-unique It'd be great if we could set |
A cobertura report supports packages as nodes above the classes. So it might make sense to write this information as well. One could recreate that structure after parsing the coverage file but it would make much more sense to directly write the report with the correct structure. |
It seems it is writing the package, but not as the ruby namespaces, but as the simplecov configured groups: simplecov-cobertura/lib/simplecov-cobertura.rb Lines 56 to 61 in d7331c2
It should use the class namespace instead, but it seems simplecov does not provide that info? |
Simplecov builds on top of the |
Hello,
We are using this gem to generate the cobertura report from simplecov to display on Jenkins.
However, Jenkins is complaining that it has duplicated classes when processing it. Every class with the same name on different scopes are detected as duplicated
Looking at the generated file I can see the following:
It seems that the class is reported as the file name, not as the ruby class name with namespace. So, apart from issuing an error on parse, I suppose it's not properly reporting a full coverage report for the duplicated classes.
The text was updated successfully, but these errors were encountered: