On 11/21/05, Jeff Chastain <[EMAIL PROTECTED]> wrote:
> This is a cross post from the CFUnit list because there did not appear to be 
> much traffice there.

There's a CFUnit mailing list???

> I am working on my first CFUnit test.  I went through the primer document 
> step by step and I believe I did everything write.  However, when I attempt 
> to execute the test cfm page, I get the following error message:

You're trying to "run" the TestSuite - you need to create a TestRunner
and run that instead:

<cfset tests = "test.RunTheTests" />

<cfset suite = 
createObject("component","net.sourceforge.cfunit.framework.TestSuite").init(tests)
/>

<cfset runner =
createObject("component","net.sourceforge.cfunit.framework.TestRunner")
/>

<cfset runner.run(suite,"tests") />
--
Sean A Corfield -- http://corfield.org/
Got frameworks?

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224852
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to