You're wrong on this. Unless if you're sure that your build file will allow you to run your unit tests on Mono or a specific version of the MS CLR ...
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of SPEAR, Adrian, GBM Sent: donderdag 3 mei 2007 16:03 To: 'Gert Driesen'; Bob Archer; Erich Eichinger; nant-users@lists.sourceforge.net Subject: Re: [NAnt-users] NUnit NAnt task roadmap To be honest - I don't see the need for a task to wrap nunit-console and the like (e.g. ncover.console.exe). As Bob states - just use an exec task to invoke the console application. I have created a simple .build file which depending upon parameters supplied will use exec to invoke typemock and ncover with the correct params to also call nunit for a combined unit test / code coverage profile run - this script also adapts the command line whether typemock is linked or not.... This works well for me and I only have to supply directories for nunit/ncover and typemock if I am not using PATH. <project name="integration.codecoverage" default="codecoverage"> <!-- required property values --> <property name="integration.codecoverage.workingdirectory" value="" overwrite="false"/> <!-- required property values --> <!-- overridable property values --> <property name="integration.codecoverage.typemock.path" value="C:\Program Files\TypeMock\TypeMock.Net\" overwrite="false"/> <property name="integration.codecoverage.typemock.console" value="tmockrunner.exe" overwrite="false"/> <property name="integration.codecoverage.typemock.profilername" value="NCover1.5.7" /> <property name="integration.codecoverage.typemock.islinked" value="true" overwrite="false"/> <property name="integration.codecoverage.ncover.path" value="C:\Program Files\NCover\" overwrite="false"/> <property name="integration.codecoverage.ncover.console" value="ncover.console.exe" overwrite="false"/> <property name="integration.codecoverage.ncover.console.assemblies" value="SCLtd.NAnt.Extensions.Tasks" overwrite="false"/> <property name="integration.codecoverage.nunitproject" value="SCLtd.NAnt.Extensions" overwrite="false"/> <property name="integration.codecoverage.nunitconfig" value="Debug" overwrite="false"/> <property name="integration.codecoverage.nunit.path" value="C:\Program Files\Nunit 2.2.9\bin\" overwrite="false"/> <property name="integration.codecoverage.nunit.console" value="nunit-console.exe" overwrite="false"/> <!-- overridable property values --> <!-- explicit property values --> <!-- explicit property values --> <target name="codecoverage" depends="integration.codecoverage" /> <target name="integration.codecoverage" description=""> <echo message="integration.codecoverage.typemock.islinked=${integration.codecovera ge.typemock.islinked}" /> <if test="${property::get-value('integration.codecoverage.typemock.islinked') == 'true'}"> <echo message="workingdir=${integration.codecoverage.workingdirectory}" /> <echo message="program=${integration.codecoverage.ncover.path}${integration.codeco verage.ncover.console}" /> <echo message="commandline=//w ${integration.codecoverage.workingdirectory} //x ${integration.codecoverage.nunitproject}.NCoverResults.xml ${integration.codecoverage.nunit.path}${integration.codecoverage.nunit.conso le} ${integration.codecoverage.nunitproject}.nunit /config=${integration.codecoverage.nunitconfig} /xml=${integration.codecoverage.nunitproject}.NUnitResults.xml //a ${integration.codecoverage.ncover.console.assemblies}" /> <exec workingdir="${integration.codecoverage.workingdirectory}" program="${integration.codecoverage.ncover.path}${integration.codecoverage.n cover.console}" commandline="//w ${integration.codecoverage.workingdirectory} //x ${integration.codecoverage.nunitproject}.NCoverResults.xml ${integration.codecoverage.nunit.path}${integration.codecoverage.nunit.conso le} ${integration.codecoverage.nunitproject}.nunit /config=${integration.codecoverage.nunitconfig} /xml=${integration.codecoverage.nunitproject}.NUnitResults.xml //a ${integration.codecoverage.ncover.console.assemblies}" /> </if> <if test="${property::get-value('integration.codecoverage.typemock.islinked') == 'false'}"> <echo message="workingdir=${integration.codecoverage.workingdirectory}" /> <echo message="program=${integration.codecoverage.typemock.path}${integration.code coverage.typemock.console}" /> <echo message="commandline=-link ${integration.codecoverage.typemock.profilername} ${integration.codecoverage.ncover.path}${integration.codecoverage.ncover.con sole} //w ${integration.codecoverage.workingdirectory} //x ${integration.codecoverage.nunitproject}.NCoverResults.xml ${integration.codecoverage.nunit.path}${integration.codecoverage.nunit.conso le} ${integration.codecoverage.nunitproject}.nunit /config=${integration.codecoverage.nunitconfig} /xml=${integration.codecoverage.nunitproject}.NUnitResults.xml //a ${integration.codecoverage.ncover.console.assemblies}" /> <exec workingdir="${integration.codecoverage.workingdirectory}" program="${integration.codecoverage.typemock.path}${integration.codecoverage ..typemock.console}" commandline="-link ${integration.codecoverage.typemock.profilername} ${integration.codecoverage.ncover.path}${integration.codecoverage.ncover.con sole} //w ${integration.codecoverage.workingdirectory} //x ${integration.codecoverage.nunitproject}.NCoverResults.xml ${integration.codecoverage.nunit.path}${integration.codecoverage.nunit.conso le} ${integration.codecoverage.nunitproject}.nunit /config=${integration.codecoverage.nunitconfig} /xml=${integration.codecoverage.nunitproject}.NUnitResults.xml //a ${integration.codecoverage.ncover.console.assemblies}" /> </if> </target> </project> -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gert Driesen Sent: 03 May 2007 14:52 To: Bob Archer; Erich Eichinger; nant-users@lists.sourceforge.net Subject: Re: [NAnt-users] NUnit NAnt task roadmap Hi Bob, I've been planning on adding an nunit-console task would be basically just be wrapper around nunit-console.exe. The only advantage would be that the nunit-console task can automatically invoke the nunit-console assembly and set the environment for the current target framework. Would something like this be useful ? Gert ----- Original Message ----- From: "Bob Archer" <[EMAIL PROTECTED]> To: "Erich Eichinger" <[EMAIL PROTECTED]>; <nant-users@lists.sourceforge.net> Sent: Thursday, May 03, 2007 3:22 PM Subject: Re: [NAnt-users] NUnit NAnt task roadmap Nothing against Nant. But, this is the reason a lot of people recommend running NUnit with the exec task. ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erich Eichinger Sent: Thursday, May 03, 2007 1:56 AM To: nant-users@lists.sourceforge.net Subject: [NAnt-users] NUnit NAnt task roadmap Hi, Since NUnit 2.4 is already out, I'd like to know if there are any concrete plans to upgrade/extend the nunit task to the new version. As far as I could see, the nunit task is still compiled against 2.2.8. cheers, Erich ---------------------------------------------------------------------------- ---- > ---------------------------------------------------------------------- > --- This SF.net email is sponsored by DB2 Express Download DB2 Express > C - the FREE version of DB2 express and take control of your XML. No > limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ ---------------------------------------------------------------------------- ---- > _______________________________________________ > NAnt-users mailing list > NAnt-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nant-users > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users **************************************************************************** ******* The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. Authorised and regulated by the Financial Services Authority This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer. Internet e-mails are not necessarily secure. The Royal Bank of Scotland plc does not accept responsibility for changes made to this message after it was sent. Whilst all reasonable care has been taken to avoid the transmission of viruses, it is the responsibility of the recipient to ensure that the onward transmission, opening or use of this message and any attachments will not adversely affect its systems or data. No responsibility is accepted by The Royal Bank of Scotland plc in this regard and the recipient should carry out such virus and other checks as it considers appropriate. Visit our websites at: www.rbs.com www.rbsgc.com www.rbsmarkets.com **************************************************************************** ******* ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users