Don't let the 0.8.3 fool you.  It really is a 1.0 version without the label of 1.0.  My bad on that one. I am in the process of getting an updated version up and I will be calling that 1.0. It should be ready very soon. It will also include a non-MachII test runner.

On 6/13/05, Jon Gunnip <[EMAIL PROTECTED] > wrote:
I use a modified version of the test harness that came with one of the
Macromedia CF Development Resource Kits (4 or 5?).  I think it is
quite similar to cfcunit.

It is quite handy.  You extend a base TestCase cfc and define
functions that begin with the word "Test" and at the end of the
function you call a function in TestCase that determines whether the
test passed or failed (e.g. AssertTrue(Len(LastName) GT 0, "Last name
is zero-length).

You can your test CFC through the browser and you get nice output of
each test function and whether it passed or failed along with any
relevant error messages.  You group TestCase's together by extending a
TestSuite.cfc.

I have a large CFC-based survey app with a test case CFC for most of
the model components.  There are about 450 test functions in all.  It
takes about 3 minutes to run all of the functions, but it is a great
way to verify whether maintenance work broke existing code in the
model.

I looked at CFCUnit, but I alreay had my test system in place.  It
would be nice to see more activity on the project and for it to get
past version 0.8.3.

I highly recommend unit testing for large applications that will
undergo a lot of maintenance.  It has definitely saved me a lot of
time in maintenance (but probably more time up front).

Jon


On 6/13/05, RADEMAKERS Tanguy < [EMAIL PROTECTED]> wrote:
> I'm looking for a solution to unit test my CFCs. I found the cfcunit
> framework and installed it (eventually, but that's another story) but
> i'm not too thrilled about the dependency on Mach-II (we don't use the
> Mach-II framework so it's a big dependency for us). We currently work
> with a shared development server, but are moving towards having people
> develop more and more on their own machine and integrate on a shared
> server, so i am looking for the simplest possible solution in order to
> cut down on developer grumbling in terms of setup and installation of
> the testing framework.
>
> Do you guys unit test your CFCs? Do you use cfcunit or some other
> (perhaps homebrewed) solution? Anybody with a good war story to tell?
> Enquiring minds need to know!
>
> /t
>
>
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.
>
> CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).
>
> CFCDev is supported by New Atlanta, makers of BlueDragon
> http://www.newatlanta.com/products/bluedragon/index.cfm
>
> An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
>
>
>


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at www.mail-archive.com/[email protected]





--
Paul Kenney
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.pjk.us ----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at www.mail-archive.com/[email protected]

Reply via email to