-
-
Notifications
You must be signed in to change notification settings - Fork 376
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
Method name should not appear in the method signature attribute of Cobertura XML #846
Comments
I reported this as an issue to Azure DevOps too, as I am unsure who is at fault: https://developercommunity.visualstudio.com/content/problem/1323739/code-coverage-task-renders-method-names-twice.html |
CC @smmccabe |
Officially a function signature is the whole thing, but I looked into the Cobertura java source code and it only does the arguments like I'll make up a PR once I get a spare moment. |
Thank you, Shawn. |
I'm not actually sure that this is a problem with the new cobertura.xml support in php-code-coverage from PR #812 or in AzureDevops, but I suspect the former. At the least, it is probably out of sync with other Cobertura generators. The name of methods appears in both the "name" and "signature" attributes in the generated XML, like so:
This causes the Azure DevOps code coverage plugin to then render every name twice:

The text was updated successfully, but these errors were encountered: