From: Mark G. <ma...@ch...> - 2002-12-17 16:39:40
|
Hi James I can tell you how we had this working. By using a <test/> element such as the following: <test class="Chive.Draco.Tests.AllTests" assembly="${build.dir}/Draco.exe" outfile="${build.dir}/Draco.Tests.Results" /> i.e. replace the attribute 'name' with 'class' in your build file. We have since upgraded all our tests to NUnit 2.0 and <exec /> out to nunit-console.exe instead. I believe that the latest CVS version of NAnt support NUnit 2.0, but have not yet investigated further. Regarding your source code extraction question, you might find Draco.NET [1] useful. Draco.NET will monitor your source repository and perform a clean build when changes are detected. Failing this I think that there are some VSS tasks in the NAntContrib [2] project. I have never used them though. Hope this gives you some pointers Kind regards Mark [1] http://draconet.sf.net [2] http://nantcontrib.sf.net -- Mark Griffiths Chive Software Limited mailto: ma...@ch... tel: +44 (0)1224 224320 tel: +44 (0)1224 224321 (direct) > -----Original Message----- > From: nan...@li... > [mailto:nan...@li...]On Behalf Of Fisk, James > Sent: 17 December 2002 08:41 > To: nan...@li... > Subject: [Nant-users] NAnt problems. > > > Hi, > > We are looking to use NANT in a .NET proof of concept. > Everything is going > fine with NANT to which we have found that building deploying of assemlies > to be very easy indeed. > > However, i have got a few questions :- > > 1. When trying to use nunit task, nant complains about a missing class > attribute. Having looked at the documentation i've found no mention 1.of > this class attribute. What should the class attribute contain ? > > 2. There seems to be no task for source code extraction out of a source > code respoistary, will this appear in later releases ? > > We are using nant version 0.7.9.0, with Windows XP professional. > The .NET > framework is version v1.0.3705. > > Please find the attached output from the NANT script and the NANT script > itself. > > <<output.log>> <<NAnt.build>> > > > Thanks > > James Fisk > Middleware Systems Engineer > EGG plc E-mail : jam...@eg... > Point North Tel : +44 (0)1384 57 4509 > Waterfront West Mobile : +44 (0)7966386731 > Dudley Road Fax : +44 (0)1384 26 4211 > Brierley Hill > West Midlands > DY5 1LU > > > > This private and confidential e-mail has been sent to you by Egg. > The Egg group of companies includes Egg Banking plc > (registered no. 2999842), Egg Financial Products Ltd (registered > no. 3319027) and Egg Investments Ltd (registered no. 3403963) which > carries out investment business on behalf of Egg and is regulated > by the Financial Services Authority. > Registered in England and Wales. Registered offices: 1 Waterhouse Square, > 138-142 Holborn, London EC1N 2NA. > If you are not the intended recipient of this e-mail and have > received it in error, please notify the sender by replying with > 'received in error' as the subject and then delete it from your > mailbox. > > |