joonty / vim-phpqa

PHP QA tools for Vim
http://www.joncairns.com
MIT License
290 stars 32 forks source link

Php code coverage #8

Closed samifruit514 closed 11 years ago

samifruit514 commented 11 years ago

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 commented 11 years ago

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

joonty commented 11 years ago

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 commented 11 years ago

Bumping this :)

joonty commented 11 years ago

Ok, treating this as fixed, closing.