Dave - NUnit, or the CLR really, will resolve references just like any other assembly/application. Take a look at the following link. If you need to resolve references outside the basic working directory or GAC options, the codebase element of hte .config file is always an option.
http://msdn.microsoft.com/library/default.asp?url="">
----Original Message Follows----
From: "David Thielen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: [Nant-users] nunit2 failing - no message, several other problems
Date: Sat, 28 Aug 2004 14:47:56 -0600
Hi;
I'm running the latest build and have nunit 2.2 installed. When I try the
following task:
<target name="test" depends="init, compile-windward, compile-test">
<nunit2>
<formatter type="Plain" usefile="true" extension=".txt"
outputdir="results"/>
<test assemblyname="test/${dir.output}/TestIt.exe"/>
</nunit2>
</target>
I get:
C:\src\netClient>nant test
NAnt 0.85 (Build 0.85.1693.0; net-1.0.win32; nightly; 8/20/2004)
Copyright (C) 2001-2004 Gerry Shaw
http://nant.sourceforge.net
Buildfile: file:///C:/src/netClient/netClient.build
Target(s) specified: test
test:
BUILD FAILED
C:\src\netClient\netClient.build(102,4):
Tests Failed.
Total time: 2.8 seconds.
The problem in the above case is it can't find a reference. Once I copied
the reference over to the bin/Release directory it worked. This illustrates
two problems:
1. If nunit won't run because of a missing reference - the error is not
displayed.
2. How do I specify the location of a reference for nunit?
Problem 2:
If the test programs call Console.out.Writeln() - that output goes to the
console instead of to the usefile. It is much more useful to have it go to
the usefile.
Problem 3:
If an unhandled exception is thrown in a worker thread in the code being
tested (I am testing to make sure the exception doesn't cause a problem),
the exception is written to the console. It is much more useful to have it
go to the usefile.
Thanks - dave
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users