This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » development » Feature requests » Unit test code coverage
Unit test code coverage [message #25134] Thu, 05 April 2007 01:12 Go to next message
arown  is currently offline arown
Messages: 5
Registered: April 2007
Junior Member

How important is it to you to see how much of the code is covered by unit tests?[ 13 vote(s) ]
1.What is a unit test? 1 / 8%
2.Not at all 0 / 0%
3.A little 0 / 0%
4.Somewhat 1 / 8%
5.Very 8 / 62%
6.Extremely 2 / 15%
7.Moderately 1 / 8%

Hi there,

I see that within lime.php there is an option for lime_coverage. When will this feature become official for use? How can I start using it? Is there a switch, like symfony unit-test --coverage ???

I am sure that our shop is doing happy path testing. I would like to know:
How many classes are really covered
How many functions in a class are covered
How many forks of a switch/if statement are covered
How much of exceptions/catch blocks are covered

Is this facility available? We are using xdebug...

I am coming out of the java community, where we used clover coverage and jalopy. Help!!!

Re: Unit test code coverage [message #25365 is a reply to message #25134 ] Tue, 10 April 2007 08:07 Go to previous messageGo to next message
francois  is currently offline francois
Messages: 1636
Registered: October 2005
Faithful Member
you can try this:

php test/bin/coverage.php
Re: Unit test code coverage [message #25670 is a reply to message #25365 ] Sat, 14 April 2007 02:19 Go to previous messageGo to next message
arown  is currently offline arown
Messages: 5
Registered: April 2007
Junior Member
I'm using sf 1 dot oh and it's all this lime stuff, no coverage.php around that I can find...
Re: Unit test code coverage [message #25710 is a reply to message #25670 ] Sun, 15 April 2007 18:39 Go to previous messageGo to next message
francois  is currently offline francois
Messages: 1636
Registered: October 2005
Faithful Member
maybe you missed it...

http://trac.symfony-project.com/trac/browser/branches/1.0/te st/bin/coverage.php
Re: Unit test code coverage [message #26124 is a reply to message #25710 ] Mon, 23 April 2007 11:33 Go to previous message
arown  is currently offline arown
Messages: 5
Registered: April 2007
Junior Member
Yeah, I did miss it... weird. I'm at 1.0.0, I think I got it b4 this was checked in 3 months ago. This is sweet. I might try just throwing the file in, maybe upgrading, but that's going to mean some effort for our production site...

but,
!!THANKS!!

Previous Topic:Time validator
Next Topic:count ($sf_request->getErrors('Error'))
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software