It really should be independent of a unit testing tool, and honestly in the
case of ColdFusion it would be a royal PITA to do without some peeks at the
source code. Just like when we talk about methods or classes should do one
thing and do it very well, code analysis and exercising tools typically
should do one thing and do it well, otherwise you might loose confidence in
a certain tool. In order to get code coverage statistics some sort of code
instrumentation is needed and typically this is the last thing you want your
unit testing framework doing. Beyond that I'd like to be able to collect
code coverage for a broader array of testing other than just unit (we'll
assume unit covers integration and some functional testing too). My load
tests may not really mean much if it only exercises 50% of the code. Is my
UAT really satisfactory if it only covers 30% of the decision paths?  Here
is an excellent Code Coverage paper I found this morning,
http://www.bullseye.com/coverage.html .

For some examples of what code coverage can do check out Cobertura (this is
for Java) http://cobertura.sourceforge.net/sample/ .


Adam Haskell


On Sat, May 17, 2008 at 2:03 PM, Brian Kotek <[EMAIL PROTECTED]> wrote:

> Isn't something like this dependent on the actual unit testing framework
> being used? If so, Adobe really couldn't do anything about it, I'd think it
> would be up to the unit test framework authors to incorporate something like
> this.
>
>
> On Sat, May 17, 2008 at 1:59 PM, Adam Haskell <[EMAIL PROTECTED]> wrote:
>
>> What you are looking for is code coverage tools and analytics. ColdFusion,
>> disappointingly, has none. Are you listening Adobe??? This is something we
>> need.
>>
>>
>> Adam Haskell
>>
>>
>>
>> On Fri, May 16, 2008 at 4:05 PM, Ronan Lucio <[EMAIL PROTECTED]> wrote:
>>
>>>
>>> Hi,
>>>
>>> I'm not sure if I can post this subject here. If not, don't worry.
>>>
>>> Is there some applications to check the percentage of test X percentage
>>> of code and things like that?
>>>
>>> Explaining better:
>>> Upon a time I attended a forum about Ruby on Rails.
>>> The guy presented a solution to cover 100% of tests.
>>> In his solution, every commit to the code was checked if there are tests
>>> written to that code.
>>> The program only commited the code if there were 100% of tests.
>>>
>>> Is there anything like that for ColdFusion?
>>>
>>> Thanks,
>>> Ronan
>>>
>>>
>>>
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CFCDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to