How to execute PHPUnit?
Posted
by
user1280667
on Stack Overflow
See other posts from Stack Overflow
or by user1280667
Published on 2012-03-20T11:05:00Z
Indexed on
2012/03/20
11:30 UTC
Read the original article
Hit count: 282
PHPUnit can execute script like this:
phpunit --log-junit classname filename.php
(i need the XML report , for my continus integreation platform)
but my problem is that i work with a MVC framework and all pages are called through pathofproject/indexCLI.php module=moduleName class=className
ect with 3 arguments in total(when i use the shell commande and path/index.php argum=... with url) so i cant call
phpunit pathofproject/indexCLI.php module=moduleName class=className .
So i think to a lot of solution , i hope you can help me to use one of them.
- first how can i use phpunit commande with this type of calling, because i cant do it because he is waiting a classname and a filename (default comportement) if it possible !!
- when i call the same link in shell like this : php path/indexCLI.php module="blabla" ect ... i have the result of assertion in my consol , but cant use XML Junit option , can i do it ?
- my last solution is to call the link in a navigator like mozzila , but i dont know how to say to phpunit runner to chose XML report and not HTML report.
the aim for me , is to have a XML report .
© Stack Overflow or respective owner