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,
|
- [Nant-users] unit testing a nAnt script Stuart Holcombe
- Re: [Nant-users] unit testing a nAnt script Scott Hernandez
- Jason King