Title: Message
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].
 
 
<?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>

Reply via email to