Patrick,
try this:
<target
name="test"
depends="build"
description="Tests the current configuration">
<csc
target="library"
debug="${build.debug}"
output="${build.dir}/${package.name}/lib/${module}.Tests.dll">
<sources
basedir="tests"
failonempty="true">
<includes name="*.cs"/>
</sources>
<references basedir="${build.dir}/${package.name}/lib">
<includes name="${module}.dll"/>
<includes name="${framework.dir}/lib/NUnit.Framework.dll"/>
</references>
</csc>
<exec
useruntimeengine="true"
program="${nunit}"
workingdir="${build.dir}/${package.name}/lib"
commandline="${module}.Tests.dll">
</exec>
</target>
I hope that helps.
j3d.
On Sat, 2004-01-24 at 20:58, Patrick McNamara wrote:
> Has anyone gotten the unit tests for NAnt to pass under mono? After
> struggling to get two of the nine tests in NAntTest.cs to pass, I ended up
> with 33 failures out of 213 in the core tests. The failures are broken up
> as:
> 1. File attribute failures. By glancing at the failures it looks like these
> are mostly Win32 specific.
> 2. Builds pass when they should fail. I believe this is a Mono bug, so these
> tests should be failing.
> 3. cmd.exe & registry errors (Obviously Win32 specific)
> 4. TestStrip errors. It looks like nothing is being stripped out of the xml.
> 5. Unterminated [] errors in the XmlLogger tests. These are the most
> puzzling since the string clearly contains both an opening and closing
> bracket.
>
> I'm specifically interested if anyone has figured out why items 4 and 5 are
> failing, since the others are just Win32 specific.
>
> --Pat
>
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> Nant-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-users
--
----------------------------------------
Giuseppe Greco
::agamura::
phone: +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email: [EMAIL PROTECTED]
web: www.agamura.com
----------------------------------------
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users