Hi,
I'm having problems getting my first MbUnit \ NAnt build script
working. I've copied the four named dlls to the nant bin directory and
then MbUnit.Framework.dll and QuickGraph.Algorithms.dll to the same
directory as my unit test base directory which seemed to get it a
little further on, but now I'm stumped and am not sure where to look
for help.
Here's the relevant bit fo the script.
<target name="build">
<mkdir dir="bin" />
<mkdir dir="doc" />
<csc target="library" output="bin/${assemblyname}.$
{basename}.dll" debug="${debug}"
doc="doc/${assemblyname}.${basename}.xml">
<nowarn>
<warning number="1591"/>
</nowarn>
<sources>
<include name="EventLogTests.cs"/>
</sources>
<references>
<lib>
<include name="..\EventLog\bin"/>
</lib>
<include name="System.dll" />
<include name="MbUnit.Framework.dll"/>
<include name="Mcd.Common.EventLogger.dll"/>
</references>
</csc>
</target>
<target name="tests">
<mbunit
report-types="Text;Html;Dox;Xml"
report-filename-format="myformat{0}{1}"
report-output-directory="doc"
>
<assemblies>
<include name="bin/Mcd.Common.UnitTests.dll" />
</assemblies>
</mbunit>
</target>
and here's the response from nant.
build:
[csc] Compiling 1 files to 'E:\Tools\nant-0.85\examples\Common
\UnitTests\b
in\Mcd.Common.UnitTests.dll'.
tests:
[mbunit] MbUnit 1.0.2531.41788 test runner
[mbunit] Loading 1 assemblies
[mbunit] AssemblyName: E:\Tools\nant-0.85\examples\Common\UnitTests
\bin\Mcd.
Common.UnitTests.dll
BUILD FAILED
Unexpected engine error while running Tests
Failed loading assemblies
Failed loading TestDomain
Failed loading assembly
Failed loading test assembly
Total time: 0.5 seconds.
So I'm lost now. There's not much documentation (sic) on how to set up
a nant script for mbunit \ what to include in the compile and what
mbunit files should go where at the moment. Any suggestions?
Thanks, Dan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MbUnit.User" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/MbUnitUser?hl=en
-~----------~----~----~----~------~----~------~--~---