Php code coverage #8

Closed
samifruit514 opened this Issue Apr 3, 2013 · 4 comments

2 participants

@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 :(

@joonty joonty added a commit that referenced this issue Apr 9, 2013
@joonty Search for all file statements with phpcc, for #8
This gets round the problem of sub-project XML child nodes.
bd94b8f
@joonty
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

@joonty
Owner

Bumping this :)

@joonty
Owner

Ok, treating this as fixed, closing.

@joonty joonty closed this May 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment