-
-
Notifications
You must be signed in to change notification settings - Fork 382
Change generated Clover XML to validate against Clover XSD #1079
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
Comments
Today, if we speak about Clover which was from Atlassian and hosted on BitBucket, we should speak about OpenClover, its open source successor, which is hosted on GitHub.
https://en.wikipedia.org/wiki/Java_code_coverage_tools#OpenClover The official OpenClover Website: Latest OpenClover as of 2025-05-20 is verion 4.5.2: https://openclover.org/downloads Link from official OpenClover blog, a post about the newest release, to changes on GitHub.
Link from the official OpenClover website to the offical issue tracker on GitHub: https://openclover.org/documentation In that GitHub repo one can find the clover.xsd, the sole XSD by the way, which is idential with the one you linked to on BitBucket: Unfortunately, I haven't found any official statement whether this file is actually the "official/canonical schema for (Open)Clover XML". |
@ravage84 Thank you! @marcphilipp Do you have any insights? Thanks in advance! |
Using the online XML validator on https://www.freeformatter.com/xml-validator-xsd.html with
I could not successfully verify the produced coverage report. Some anonymized examples:
|
This is mostly a duplicate of issue #578 |
Also, I can confirm @amottier's observation about splitting the absolute file path into the attributes Confirming statement of the author of the Jenkins Coverage plugin about a related UX issue:
(Formatting by myself) |
I'm afraid I don't. Sorry! |
No worries, thank you for responding. |
Any help with #1080 would be much appreciated. As a first step, I have expanded the tests for the Cover XML reporter to validate the generated XML against Clover's XSD. |
Discussion moved to #1080. |
It would help me if somebody could look into whether https://bitbucket.org/atlassian/clover/raw/master/etc/schema/clover.xsd is, in fact, the official/canonical schema for Clover XML and, if it is, look into whether there are any other changes PHPUnit (or phpunit/php-code-coverage, rather) needs to implement to comply with the schema.
Originally posted by @sebastianbergmann in sebastianbergmann/phpunit#6210 (comment)
The text was updated successfully, but these errors were encountered: