i have a separate solution build configuration for the automated build which
outputs binaries in the build folder. this is also generated when you
generate the folder structure and base projects from treesurgeon.
On 3/30/07, hmobius <[EMAIL PROTECTED]> wrote:
>
>
> I have to admit I got a bit confused reading Jay's setup notes for
> CIFactory. i got lost trying to figure out how I should structure the
> source code for the project and tests in svn before CIFactory got a
> hold of them.
>
> So using your directory structure below, you;ve got your controls and
> source files in the src directory. Do you use nant then to compile
> them into the build directory rather than bin\debug or bin\release?
> I'm just used to the Visual Studio way of doing things. Does that mean
> your set your basedir in nant to the trunk directory rather than the
> src directory
>
> Thanks, Dan
>
> On Mar 29, 3:35 pm, "Joey Calisay" <[EMAIL PROTECTED]> wrote:
> > 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
> >
> > --
> > ----------------------
> > joeycalisayhttp://devpinoy.org/blogs/joeycalisay/
>
>
> >
>
--
----------------------
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
-~----------~----~----~----~------~----~------~--~---