Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Php code coverage #8

Closed
samifruit514 opened this Issue · 4 comments

2 participants

samifruit514 Jonathan Cairns
samifruit514

there is a package tag in my clover xml (namespace)

in this case, should this:
ctxt.xpathEval("/coverage/project/file[@name='"+fileName+"']/line[@type='stmt']")

be this:
ctxt.xpathEval("/coverage/project/package/file[@name='"+fileName+"']/line[@type='stmt']")
?

samifruit514

Actually, I just tried it, and it worked. Im not sure how to fix this properly with xpath :(

Jonathan Cairns joonty referenced this issue from a commit
Jonathan Cairns Search for all file statements with phpcc, for #8
This gets round the problem of sub-project XML child nodes.
bd94b8f
Jonathan Cairns
Owner

Hi, thanks for this.

Take a look at the commit I've just pushed - it does a global search for the file tag rather than specifying the ancestors explicitly. It worked for me, and hopefully it will for you too.

Thanks

Jonathan Cairns
Owner
joonty commented

Bumping this :)

Jonathan Cairns
Owner
joonty commented

Ok, treating this as fixed, closing.

Jonathan Cairns joonty closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.