cfunit test suites FIXED

2004-01-14 Thread Thomas Chiverton
Ahh, there is an example buired in the .zip, as follows:

    
setSuiteName("Test Suite");
addTest("com.macromedia.cfunit.meta_test_1");
addTest("com.macromedia.cfunit.meta_test_2");			
    


Might be worth updating the devNet / .in zip docs to make this more obvious.

-- 
Tom Chiverton 
Advanced ColdFusion Programmer

Tel: +44(0)1749 834997
email: [EMAIL PROTECTED]
BlueFinger Limited
Underwood Business Park
Wookey Hole Road, WELLS. BA5 1AF
Tel: +44 (0)1749 834900
Fax: +44 (0)1749 834901
web: www.bluefinger.com
Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple
Quay, BRISTOL. BS1 6EG.
*** This E-mail contains confidential information for the addressee
only. If you are not the intended recipient, please notify us
immediately. You should not use, disclose, distribute or copy this
communication if received in error. No binding contract will result from
this e-mail until such time as a written document is signed on behalf of
the company. BlueFinger Limited cannot accept responsibility for the
completeness or accuracy of this message as it has been transmitted over
public networks.***
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: cfunit test suites

2004-01-13 Thread Christian Cantrell
Here is a little test suite I used for "meta" testing the test suite:


 
 setSuiteName("Meta Test Suite");
 addTest("com.macromedia.cfunit.meta_test_1");
 addTest("com.macromedia.cfunit.meta_test_2");
 


Make a direct HTTP request to this component just like you would to an  
individual test (with the method=run parameter), and the test suite  
will run all the tests that were added to it.

Does that make sense?

Christian

On Tuesday, January 13, 2004, at 06:53  AM, Thomas Chiverton wrote:

> The docs are slightly lacking in how to group test cases together into  
> a
> suite, I've tried creating a component like:
> 
> 
> 
> setSuiteName('Test Suite for CEO');
> addTest('com.bluefinger.tests.a_test.test_checkPass_fails');
> addTest('com.bluefinger.tests.b_test.test_checkVehicleTelIsFree_fails') 
> ;
> run();
> 
> 
> 
> but that doesn't work.
>
> The individual test cases for each object  
> (http://.../a_test.cfc?method=run)
> run fine.
> --
> Tom Chiverton
> Advanced ColdFusion Programmer
>
> Tel: +44(0)1749 834997
> email: [EMAIL PROTECTED]
> BlueFinger Limited
> Underwood Business Park
> Wookey Hole Road, WELLS. BA5 1AF
> Tel: +44 (0)1749 834900
> Fax: +44 (0)1749 834901
> web: www.bluefinger.com
> Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple
> Quay, BRISTOL. BS1 6EG.
> *** This E-mail contains confidential information for the addressee
> only. If you are not the intended recipient, please notify us
> immediately. You should not use, disclose, distribute or copy this
> communication if received in error. No binding contract will result  
> from
> this e-mail until such time as a written document is signed on behalf  
> of
> the company. BlueFinger Limited cannot accept responsibility for the
> completeness or accuracy of this message as it has been transmitted  
> over
> public networks.***

>
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




cfunit test suites

2004-01-13 Thread Thomas Chiverton
The docs are slightly lacking in how to group test cases together into a 
suite, I've tried creating a component like:

	
		
		setSuiteName('Test Suite for CEO');
		addTest('com.bluefinger.tests.a_test.test_checkPass_fails');
		addTest('com.bluefinger.tests.b_test.test_checkVehicleTelIsFree_fails');
		run();
		
	

but that doesn't work.

The individual test cases for each object (http://.../a_test.cfc?method=run) 
run fine.
-- 
Tom Chiverton 
Advanced ColdFusion Programmer

Tel: +44(0)1749 834997
email: [EMAIL PROTECTED]
BlueFinger Limited
Underwood Business Park
Wookey Hole Road, WELLS. BA5 1AF
Tel: +44 (0)1749 834900
Fax: +44 (0)1749 834901
web: www.bluefinger.com
Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple
Quay, BRISTOL. BS1 6EG.
*** This E-mail contains confidential information for the addressee
only. If you are not the intended recipient, please notify us
immediately. You should not use, disclose, distribute or copy this
communication if received in error. No binding contract will result from
this e-mail until such time as a written document is signed on behalf of
the company. BlueFinger Limited cannot accept responsibility for the
completeness or accuracy of this message as it has been transmitted over
public networks.***
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]