OK, I'm rewriting a bunch of old code to use CFCs, and I've just started
playing around with ColdSpring and CFUnit.  Some of the unit tests I've
written make sure that ColdSpring is properly creating objects and
injecting any necessary dependencies.  Testing the CS bean factory seems
appropriate since I'll be using CS to instantiate nearly all of my CFCs.

So here's my question:  should I create a separate CFUnit TestCase that
holds all of the ColdSpring related tests, or should I just stick the CS
tests in with all of the other unit tests for a component?

Creating a separate test case for the CS tests is nice because if I
change IoC frameworks, or stop using one altogether, removing the tests
from the test runner is easy.

On the other hand, having each test case test its own CS interaction
keeps all of the test code for a given component in one place.

What do you guys do?

Thanks,
Seth


----------------------------------------------------------
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).

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


Reply via email to