Re: Comparing the various ways to run tests

"Charlie Poole" <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nunit.user
Message-ID <001b01c874b1$13e04f40$6401a8c0@ferrari>
Hi Brad,

We added NUnit projects in order to provide a way to combine
multiple assemblies in a single run. It turns out to also
be a handy place to put various settings. 

Currently, the most useful thing you can do with it is to
specify the name of the config file to be used. I'm expecting
to also use it for a number of other options, like specifying
whether to run each assembly in its own AppDomain or Process.

Another minor advantage of a project, even for a single
assembly, is that it allows you to switch between various
configs. The configs could simply be Debug and Release, which
is what you get when creating an nunit project from a vs 
project or solution, or they can include/exclude different
assemblies, specify different config files and options, etc.

When you open a VS project or solution, a default nunit
project is created for you. Since this can be modified and
saved, this is a useful way to create an nunit project if
you need one.

It's worth noting that a future release of NUnit will move
to "Import..." for VS projects rather than "Open..." to make
it clearer what is going on and to open the door for 
recognizing additional formats.

Charlie

> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf 
> Of Brad Stiles
> Sent: Wednesday, February 20, 2008 11:20 AM
> To: [email protected]
> Subject: [Nunit-users] Comparing the various ways to run tests
> 
> What are the advantages and disadvantages of running NUnit on 
> the tested assembly directly, rather than on an NUnit project 
> or a Visual Studio project or solution?
> 
> I've always just created one assembly for my relatively 
> simple projects, even if they are large, and organized via 
> namespace in the test assembly.  Is it just that for projects 
> that have more than one test assembly, an NUnit project or VS 
> solution makes organization easier, or are there other benefits?
> 
> Brad 
> 
> 
> --------------------------------------------------------------
> -----------
> 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.