The "haltonerror" attribute on <test> controls whether a failure in that
specific test assembly will result in a build failure (if "failonerror" on
<nunit2> is set to "true", which it is by default), or just continue with
the next <test> element (assembly).

By setting the "failonerror" attribute on <nunit2> task to "false" both
"normal" test failures as internal NUnit errors will not cause the build
fail.

It's late and I'm tired, so I hope this makes a little bit sense ;-)

Gert

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> murty dronamraju
> Sent: dinsdag 9 november 2004 15:27
> To: [EMAIL PROTECTED]
> Subject: [Nant-users] Question regarding the nunit2 task
> 
> Hi Guys:
> I had a question about the nunit2 task.I want my build script to
> continue running through all the unit tests even though a particular
> unit test fails.
> Here is what i have in my build script
> 
> <!-- Performs NUnit tests on the included assemblies -->
>               <if 
> test="${property::exists('project.nunittestpath')}" >
>                       
>                       <nunit2>
>                               <formatter type="Xml" 
> usefile="true" extension=".xml"
> outputdir="${build.dir}/testresults" />
>                               <test 
> assemblyname="${project.nunittestpath}\Data\bin\LaCrosse.EASES
> vc.Data.Test.dll"
> />
>                                 <test
> assemblyname="${project.nunittestpath}\ServiceAgents\bin\xxx.y
> yyy.zzzz.Test.dll"
> />
> <test 
> assemblyname="${project.nunittestpath}\ServiceAgents\bin\aaa.b
> bb.cccc.Test.dll"
> />
>                                 
>                        </nunit2>
>               </if>
> 
> 
> 
> 
> I want nunit to run through the second unit test even if the first one
> fails.My question is where do i put the "failonerror" parameter in the
> above code.
> 
> Thank you in advance,
> 
> Murty Dronamraju
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on Linux.
> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
> _______________________________________________
> Nant-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-users
> 
> 



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to