On 4/6/06, Simone Chiaretta <[EMAIL PROTECTED]> wrote:
I'm trying to setup a CCNET installation and using MbUnit for UnitTesting.
But in the NAnt build file, when I call the MbUnit.Cons.exe program I get an error due to the fact that it doesn't find the right assembly.:

Here is the folder tree

\root\
      \website
      \unittestingproject
             \bin
                  \relaase\tests.dll

The Nant file is run from the root folder and I'm calling the mbunit console specifying the assembly-path as unittestingproject\bin\release
and as file just tests.dll

            <exec program="${MbUnit.exe}">
                <arg value="/assembly-path:unittestingproject\bin\release"/>
                <arg value="/report-type:Xml"/>
                <arg value="/report-folder:${CCNetArtifactDirectory}"/>
                <arg value="tests.dll"/>
            </exec>

I that case I get an error saying that  the file tests.dll cannot be found.

if I specify as file unittestingproject\bin\release\tests.dll I get errors because then all referenced assemblies cannot be found.

I got it working (well... not really, but at least I skipped this error :-)) setting the workingdir of the exec Nant task to the unittestingproject\bin\release folder....

Is that a bug or am I doing something wrong?

Simone

PS: when it loads the programs output all parameters, and the assembly-path has been set correctly

--
Simone Chiaretta
www.piyosailing.com/S
Any sufficiently advanced technology is indistinguishable from magic
"Life is short, play hard"



--
Simone Chiaretta
www.piyosailing.com/S
Any sufficiently advanced technology is indistinguishable from magic
"Life is short, play hard"
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to