Hello
 
Here are my thoughts.  Split up complex scripts in a sensible way, think sensible coding, sensible build scripts.  Then, it would be possible to test these individual elements of a bigger picture by using NUnit, at least for the bits of scripts that create files, so a library building section could be tested as to whether the desired dll is found in the desired folder, the folder creation portion of a script could be tested in the same way, and also all the clean up portions.  I believe NUnit is capable of spawning shell tasks, so it shouldn't be too difficult to tell it to run some NAnt scripts (which in turn can run NUnit, its a wheel of madness).
 
Hope this helps.
 
Jase
 

Regards,
Jason King
Profox Systems Ltd

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Stuart Holcombe
Sent: 20 January 2004 19:07
To: [EMAIL PROTECTED]
Subject: [Nant-users] unit testing a nAnt script

Is there a nAntUnit or some such utility to unit test nAnt scripts?  If not, does anyone have any suggestions on how to go about testing a nAnt script in a structured way?

 

- Stuart

Reply via email to