I've been trying to use and implement test driven development on our new
project, via CFUnit, and am struggling w/ other developers on several fronts,
such as justifying the effort but that's another issue, but the main issue is
how to efficiently test and exercise the DAO objects. The
approach I'm trying to implement is to load test cases into an XML
file, read the test cases into a CFUnit, fire off the CRUD methods and
check to see if the expected outcome matches the actual outcome.
Each expected result is stored w/ the test case data in the XML file.
Here is a simple example: Attempt to insert or update invalid data, such as
field data that is too long. The test case should run and return
false which is the expected result. If the 2 values match that test
was successful, if not the test failed.
Is this really the best way to test the DAO objects? Do others have
any recommendations or other ideas on how to exercise and test a DAO
object's methods?
Thanks,
Jason
----------------------------------------------------------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]
