I have below fragment placed in a build file

               <nunit2 basedir="${OutputFolder}" failonerror="false">
                <test assemblyname="${OutputFolder}/UnitTest.dll" />
               </nunit2>

The problem is my test cases are dependent on configuration file which are stored in UnitTest.dll.config and read using Microsoft Configuration Application Block. The test cases works fine, it can read / write information to/from configruation file, when tested using NUnit-Gui or NUnit-Console app.

But when the same test case is executed using the NAnt task it fails ( not able to locate the config file )

As we all know NUnit creates a separate appdomain and points the applicationconfiguration file to the physical path of the assembly it loaded but whereas using NAnt it points to the launch directory of the nant application instead of test asssembly path.



Regards
Yogesh S

_________________________________________________________________
MSN Messenger V6.0. Give it a fun name. http://server1.msn.co.in/sp03/ilovemessenger/index.asp Win cool stuff!




-------------------------------------------------------
This SF.net email is sponsored by Dice.com.
Did you know that Dice has over 25,000 tech jobs available today? From
careers in IT to Engineering to Tech Sales, Dice has tech jobs from the
best hiring companies. http://www.dice.com/index.epl?rel_code=104
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to