Hi Dan,

I don't know what seems to be the problem with your setup, failed loading of
assemblies or locking of assemblies (fusion log will help in debugging btw)
but here is my usual setup for projects:

trunk
-build
-tools
--nant
--mbunit
-src
-lib

This is the structure generated by tree surgeon btw (haven't used jay's ci
factory yet).  The src folder contains the solution and the test projects
just references the MbUnit.Framework.dll from the tools\mbunit folder.  nant
also executes the console runner for the run-tests task from mbunit folder.

This way, u can just replace the mbunit binaries if there is a new release.


On 3/29/07, hmobius <[EMAIL PROTECTED]> wrote:
>
>
> 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
>
>
> >
>


-- 
----------------------
joeycalisay
http://devpinoy.org/blogs/joeycalisay/

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to