Hi Eric.

I'd like to point out that you are using documentation for the latest nightly for nunit2 task while you
are executing it with a pre-historic version of nant.
I think you should use the 0.8.3 docs. Don't even think nunit2 existed then.


Also, i'm not sure if you are aware of it but a huge amount of fixes in all areas of Nant has been
included since 0.84 was released, I can't even begin to imagine how many bugs 0.83 would have.
If I where you I'd use the latest nightly and give that a try. If it still won't work then you would be in
a much better position to get help on the list.


/Nicke

Blossom, Eric wrote:

I tried using the nunit2 task and nothing happened. On http://nant.sourceforge.net/nightly/help/tasks/nunit2.html I found a runtime stanza to add to my NAnt.exe.config file. After adding that stanza I get the output you see below. My tests work fine in the NAnt GUI and in the NAnt console tool. Is it just a matter of correcting one of the numbers in the runtime stanza?
thanks,
Eric Blossom
BUILD FAILED
INTERNAL ERROR
System.TypeLoadException: Could not load type NUnit.Core.NullListener from assembly nunit.framework, Version=2.2.0.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77.
at NAnt.NUnit2.Tasks.NUnit2Task.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.Target.Execute()
at NAnt.Core.Project.Execute(String targetName)
at NAnt.Core.Project.Execute()
at NAnt.Core.Project.Run()
Please send bug report to [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>.
<?xml version="1.0" ?>
<!--
Drives NAnt to build Bruce
Eric Blossom - November, 2004
-->
<project name="bruce" default="test">
<description>Mockup of a Workflow Wizard</description>
<property name="nant.settings.currentframework" value="net-1.1"/>
<property name="debug" value="true" />
<property name="project.name" value="Bruce" />
<property name="project.version" value="0.1" />
<property name="build.dir" value="build" />
<property name="ourpkg" value="com/affymetrix/workflow_wizard_mockup" />
<property name="nunitf.dir"
value="C:/Program Files/NUnit 2.2/bin"
/>
<echo message="Using '${nant.settings.currentframework}' Framework"/>
<target name="test"
description="Unit Tests for Bruce"
depends="compile-test"
>
<echo message="testing..." />
<nunit2 verbose="true">
<formatter type="Plain" />
<test>
<assemblies basedir="test/${ourpkg}">
<includes name="Test*.dll" />
</assemblies>
</test>
</nunit2>
</target>
<target name="compile-test" depends="compile" verbose="true">
<csc target="library" output="${build.dir}/Form1Test.dll" debug="${debug}">
<sources basedir="test/${ourpkg}">
<includes name="*.cs" />
</sources>
<references>
<includes name="${build.dir}/WorkFlowWizard.exe" />
<includes name="${nunitf.dir}/nunit.framework.dll" />
</references>
</csc>
</target>
<target name="compile" description="Compilation" depends="prep">
<csc target="exe" output="${build.dir}/WorkFlowWizard.exe" debug="${debug}">
<sources basedir="src/${ourpkg}">
<includes name="*.cs" />
</sources>
</csc>
</target>
<target name="prep">
<mkdir dir="${build.dir}" />
</target>
<target name="clean" description="remove all generated files">
<delete file="${build.dir}/*.exe" failonerror="false" />
<delete file="${build.dir}/*.pdb" failonerror="false" />
<delete dir="${build.dir}" failonerror="false" />
</target>
</project>




-------------------------------------------------------
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-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to