Thanks for the quick response. Actually I have already started implementing a new version of NUnit2Task. You can find it at Sourceforge CVS (http://springnet.cvs.sourceforge.net/springnet/Spring.Net/tools/NAnt.NUnit2OutProc.Task/) or in the sourcecode distribution of Spring.NET (see nightly builds at our website)
The primary strategy was to launch one external process for each required runtime version that will in turn host NUnit TestDomains. The solution is definitely more complex than Gert's <nunit-console> approach and uses remoting for communication between Nant.exe process and the process hosting the test-domain. On the other hand it would allow for more advanced features: - optional strict watching dependencies of the assembly under test this would throw an exception if the assemblies ImageRuntimeVersion does not match to the current runtime. - "reuse" of CLR-processes, which speeds up running tests vs. firing up a new nunit-console process for each assemlby. - ? some more ? I'm not sure, if it's worth the effort following this strategy - if someone wants to pick up the ball, feel free to take the sourcecode. There's still one important open issue: How to do Compact Framework testing? Are there any experienced "Compact Framework Continous Integration Testers" out there? cheers, Erich > -----Original Message----- > From: Gert Driesen [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 06, 2007 3:47 PM > To: Erich Eichinger; nant-users@lists.sourceforge.net > Subject: Re: [NAnt-users] How to run NUnitTask against > different frameworktargets within a single NAnt-Script > > > ----- Original Message ----- > From: "Erich Eichinger" <[EMAIL PROTECTED]> > To: <nant-users@lists.sourceforge.net> > Sent: Tuesday, February 06, 2007 3:38 PM > Subject: [NAnt-users] How to run NUnitTask against different > frameworktargets within a single NAnt-Script > > > > > > Hi, > > > > In the Spring.NET project I'm working on we need to > maintain a single > > build script that should compile and test against all > possible target > > frameworks (NET 1.0, 1.1, 2.0, Mono, CF). > > > > Compilation runs against the right framework - but when it comes to > > executing the tests, these tests are executing within the > CLR used to > > launch nant.exe (of course). > > > > We've been using a workaround using the <exec> task and setting > > COMPlus_Version environment variable but that's not > satisfying all needs. > > > > Are there any ideas, already existing solutions, future > plans on this > > issue? > > I was actually planning on writing an <nunit-console> task, > which would just be wrapper around the nunit-console > executable (which we would include in the NAnt distribution > for each supported target framework, or at least .NET and Mono). > > This would allow us to support all versions of .NET and Mono, > but not .NETCF. > > Not sure if there's a better approach to this. > > Gert > > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users