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

Reply via email to