The same --coverage-html and --coverage-clover options that phpunit 
supports can be used with the TestShell.  I've found that the clover file 
is easy to integrate into a deploy process as its easy to machine parse and 
abort a deploy if there are issues.

-Mark

On Saturday, 2 March 2013 19:25:17 UTC-5, Thiago Belem wrote:
>
> Thank you Iva!
>
> I achieved the same results using a phpunit.xml file: 
> https://gist.github.com/TiuTalk/5073889
>
> How I get a code coverage report while using *cake test app <case>* :)
>
> --
> ***Thiago Belem*
> Desenvolvedor
> Rio de Janeiro - RJ - Brasil
>
> *Assando Sites* - Curso online de *CakePHP*
> assando-sites.com.br <http://goo.gl/b1EEd>
>
> thiagobelem.net
> [email protected] <javascript:>
>
> *Skype / gTalk **»* thiago.belem.web
> *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt
>  
>
> On Sat, Mar 2, 2013 at 7:06 PM, majna <[email protected] <javascript:>>wrote:
>
>> You can easily extend test shell like this 
>> https://gist.github.com/majna/5073435
>>
>>     cake apptest core Utility/Hash --coverage-text --colors
>>  
>>
>> On Saturday, March 2, 2013 4:47:34 PM UTC+1, Thiago Belem wrote:
>>
>>> Hiho guys!
>>>
>>> I'm trying to get the code coverage statistics from the command line but 
>>> the *cake test* shell doesn't accept all phpunit command parameters 
>>> like *--coverage-text*.
>>>
>>> Even if I add it to the *TestShell.php* it doesn't work (maybe because 
>>> the tests are beign run via PHP and not via the phpunit binary?)
>>>
>>> I just want a way to get code coverage stats on the console while 
>>> running the tests, I know I can generate the coverage report as XML or HTML 
>>> but this is too much for a "you need to have 100% coverage before deploy" 
>>> kind of process.
>>>
>>> On a side question, there's a way to run my app tests via the 
>>> *phpunit*command and not the cake test shell? I tried to find/include a 
>>> bootstrap 
>>> file but I kept getting lots of class not found errors for App, 
>>> CakeTestSuite and stuff.
>>>
>>> Regads.,
>>> --
>>> ***Thiago Belem*
>>> Desenvolvedor
>>> Rio de Janeiro - RJ - Brasil
>>>
>>> *Assando Sites* - Curso online de *CakePHP*
>>> assando-sites.com.br <http://goo.gl/b1EEd>
>>>
>>> thiagobelem.net
>>> [email protected]
>>>
>>>
>>> *Skype / gTalk **»* thiago.belem.web
>>> *LinkedIn* *»* 
>>> br.linkedin.com/in/**thiagobelem/pt<http://br.linkedin.com/in/thiagobelem/pt>
>>>   
>>  -- 
>> Like Us on FaceBook https://www.facebook.com/CakePHP
>> Find us on Twitter http://twitter.com/CakePHP
>>  
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "CakePHP" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to