kigogu Posted April 25, 2012 Share Posted April 25, 2012 Is there any way that I could view the results from my code coverage remotely? My boss wants to be able to view my code coverage results without having to log on to my computer or anything like that. I'm fairly new to code coverage in general so I do not know how I might be able to set this up. For reference i'm using PHPUnit and xdebug to get my results. Quote Link to comment https://forums.phpfreaks.com/topic/261585-view-code-coverage-remotely/ Share on other sites More sharing options...
trq Posted April 25, 2012 Share Posted April 25, 2012 Phpunit can produce a html page that displays your code coverage. All you need do is put that on a public facing server. Quote Link to comment https://forums.phpfreaks.com/topic/261585-view-code-coverage-remotely/#findComment-1340502 Share on other sites More sharing options...
kigogu Posted April 26, 2012 Author Share Posted April 26, 2012 omg I forgot about doing that, thank you @__@ btw is there any ways that i could make a php file that would just run a code coverage test to display it? that way i wouldn't have to keep updating my report? Quote Link to comment https://forums.phpfreaks.com/topic/261585-view-code-coverage-remotely/#findComment-1340692 Share on other sites More sharing options...
trq Posted April 26, 2012 Share Posted April 26, 2012 You should probably look into some form of *build* tool. I personally use Phake as it's very simple. There is an example of it's usage in my framework, https://github.com/proem/proem/blob/develop/Phakefile There would be nothing stopping you from creating a task that would upload your code coverage results somewhere. Assuming your using version control as well you could also setup a hook to do the same. Quote Link to comment https://forums.phpfreaks.com/topic/261585-view-code-coverage-remotely/#findComment-1340693 Share on other sites More sharing options...
kigogu Posted April 26, 2012 Author Share Posted April 26, 2012 sweet, alright, thank you. i will look into something like that. I appreciate the help ^^ Quote Link to comment https://forums.phpfreaks.com/topic/261585-view-code-coverage-remotely/#findComment-1340695 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.