Re: Dynamically Defining Tests from Config File

"Brad Stiles" <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nunit.user
Message-ID <[email protected]>
Brandon Payton <[email protected]> wrote:

> If there is an approach to this that would stay in the spirit of the
> NUnit architecture while allowing me to define separate tests for each
> parameter/output set, could you please point me in the right
> direction.  (It can be a very general pointing...)

Your description sounds like you are doing acceptance or integration 
testing, rather than developer testing.  That's not to say you can't do 
it in NUnit; I've done that sort of thing using an XML "table" for 
holding the data I want to pass to the test.  The actual test method 
simply loops over that data, supplying it to whatever methods are being 
tested, and reporting the results out through the GUI or the log.

However, NUnit assumes a "test one thing, and report success or failure" 
methodology, so it doesn't currently have what I would call a 
"satisfactory" way to report partial failures, or failures in one of 
many sets of data.  I managed it by doing stuff that doesn't look very 
pretty. :)  That's not a failing IMNECTHO, just a fact.

I've been investigating FIT and FitNesse (http://www.fitnesse.org) for 
this purpose lately, and I'm finding it much more appropriate for that 
type of test.

>
>
> Thank you for your time.
>
> -Brandon Payton
>
> -------------------------------------------------------------------------
> SF.Net email is sponsored by: The Future of Linux Business White Paper
> from Novell.  From the desktop to the data center, Linux is going
> mainstream.  Let it simplify your IT future.
> http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
> _______________________________________________
> Nunit-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/nunit-users



-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
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.