|
From: Travis S. <dev...@do...> - 2008-04-23 16:41:31
|
Hey Lars; On Apr 23, 2008, at 9:57 AM, Lars Olesen wrote: > Is it possible to do a report on code coverage using simpletest? If it > is, it would be possible to use simpletest with phpUnderControl and > cruisecontrol. It is pretty neat that you can get both a code coverage > report and a codesniffer report. There's no official code coverage yet. There's some institutional resistance to it here 'cause it is a false meter (i.e., and good TDD project will actually have well over 100% code coverage). People see "95%" and get all happy, when there's still major areas not covered. I guess its like any statistical data though, its only as good as the person interpreting it. That said, it is on the road map as it is an oft requested feature. I have plans on doing it in PHPT as well, so hopefully there can be some cross pollination. As Troel said in another email, it's really trivial to implement, the hard part is getting useful info out. I've got some interesting ideas for PHPT since each test case gets executed in its own process I can show how many times a given line was exercised at least once during a test, but discussion of that's for another list :-) -T |