Re: Problem with multiple Assemblies

"Charlie Poole" <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nunit.user
Message-ID <00b301c88083$a1601980$6401a8c0@ferrari>
 Hi Christian,

> I have two Assemblies with tests -- say TestSuite1 and 
> TestSuite2 --, residing in *different* directories in the file system.
> 
> Now I want to run the suites
> * separately
> * together in a single run
> 
> This works well with nunit-console.

This works with nunit-console because it defaults to running multiple
assemblies on the command line in separate Appomains.
 
> But with nunit (the gui-runner) I'm having problems:
> Running the suites separately works well.
> For running both suites in a single run I prepared an 
> NUnit-project like
> this:
> 
> <NUnitProject>
>   <Settings activeconfig="Debug" />
>   <Config name="Debug" binpathtype="Auto">
>     <assembly path="path/to/somewhere/TestSuite1" />
>     <assembly path="path/to/somewhere/else/TestSuite2" />
>   </Config>
>   <Config name="Release" binpathtype="Auto" /> </NUnitProject>
> 
> which I located in a directory different from the directories 
> mentioned above.

The directory must be precisely that directory from which the
relative paths in the nunit project are valid. [NUnit project
paths are always relative, even though you may enter them as
absolute in the project editor.]

> Now, when I open this project, I get the following error:
> "System.ApplicationException: Unable to load TestSuite1 
> because it is not under the AppBase
> ---> System.IO.FileNotFoundException: Could not load file or assembly
> 'TestSuite1' or one of its dependencies. The system cannot 
> find the file specified."
> 
> I already get this error when I try to create the project using nunit:
> * File->New Project...
> * Project->Add Assembly...
>     * select Assembly, click open ==> error.

Save your project in some directory, which is a common ancestor
to both assemblies directories. If that's not possible or desirable,
you may be able to run the assemblies using a separate AppDomains.
This may require manually editing the nunit file, if you get errors
from NUnit when trying to add an assembly.

If you continue to have trouble, please provide the actual paths,
together with the location of your nunit project file.

Charlie

> Regards,
>   Christian
> 
> 
> --------------------------------------------------------------
> -----------
> This SF.net email is sponsored by: Microsoft Defy all 
> challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Nunit-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/nunit-users
> 



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.