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

Support clover path attribute on file nodes in XML report #349

Merged
merged 1 commit into from
Jul 31, 2018

Conversation

dblandin
Copy link
Contributor

@dblandin dblandin commented Jul 30, 2018

The XML report generated by more recent versions of clover include the full path to the file within a path attribute. The name attribute in these reports contains just the filename without any directory
structure.

To support reading the source file, we'll need to reference this new attribute.

The XML report generated by more recent versions of clover include the
full path to the file within a `path` attribute. The `name` attribute in
these reports contains just the filename without any directory
structure.

To support reading the source file, we'll need to reference this new
attribute.
@dblandin dblandin requested a review from ale7714 July 30, 2018 23:29
@ale7714
Copy link
Contributor

ale7714 commented Jul 30, 2018

@dblandin this LGTM overall, do you know if the attribute path is not present on older versions of the XML report?

@dblandin
Copy link
Contributor Author

I'm not sure which is why I added the fallback.

@dblandin
Copy link
Contributor Author

@ale7714 For what it's worth, the fixture example included in this repo does not include the path attribute: https://github.com/codeclimate/test-reporter/blob/master/formatters/clover/example.xml#L5

@dblandin dblandin merged commit 257f93d into master Jul 31, 2018
@dblandin dblandin deleted the devon/clover-xml-file-path branch July 31, 2018 01:21
dblandin added a commit that referenced this pull request Jul 31, 2018
* [FIX] Support clover `path` attribute on file nodes in XML report [#349][]

[#349]: #349
@dblandin dblandin mentioned this pull request Jul 31, 2018
dblandin added a commit that referenced this pull request Jul 31, 2018
* [FIX] Support clover `path` attribute on file nodes in XML report [#349][]

[#349]: #349
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

Successfully merging this pull request may close these issues.

2 participants