From: Gert Driesen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 08, 2005 1:39 PM
To: Whitner, Tom; nant-users@lists.sourceforge.net
Subject: RE: [Nant-users] <nunit2> haltonerror does not appear to workHi Tom,I'm not that familiar with the <nunit2> task, but I think both the haltonfailure attribute should be set to false on both the <nunit2> task as the <test> element.The default value of that attribute is "false" on the <nunit2> task, but "true" on the <test> element.I find it rather confusing, but well ...Gert
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Whitner, Tom
Sent: maandag 7 maart 2005 19:58
To: nant-users@lists.sourceforge.net
Subject: [Nant-users] <nunit2> haltonerror does not appear to work
I am executing unit test in several assemblies using a single <nunit2> task. One of the assemblies is encountering errors. This halts the execution of the remaining unit tests. However, the 'haltonerror' attribute of this task claims to 'Stop the test run if a test fails'. This attribute defaults to false, so I would not expect the behavior that I described above. I have also tried explicitly setting this attribute with no effect. Here is the task from my NAnt script.
<nunit2 verbose="true" haltonfailure="false" failonerror="false">
<formatter type="Xml" usefile="true" extension=".nunit.xml" outputdir="${comp.rpt.cfg.dir}" />
<test>
<assemblies refid="test.assemblies" />
</test>
</nunit2>Has anyone else seen this? Is this a bug or am I misunderstanding the use of this attribute?
Thanks,
Tom
Thanks Gert, That did the
trick.
- RE: [Nant-users] <nunit2> haltonerror does not appear t... Gert Driesen
- RE: [Nant-users] <nunit2> haltonerror does not app... Whitner, Tom