Re: Dynamically Defining Tests from Config File

"Ian Wood" <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nunit.user
Message-ID <[email protected]>
>(It can be a very general pointing...)
I understand this is the NUnit list but...MBUnit offers such
functionality. 

However, from reading posts about NUnit v MBUnit you can achieve the
same using NUnit's extensibility framework.

I however am sticking with NUnit. I find it more than good enough for
what I do and need a good reason to risk problems with another
framework.

Best regards,

Ian

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Brandon
Payton
Sent: 30 November 2007 01:24
To: [email protected]
Subject: [Nunit-users] Dynamically Defining Tests from Config File

Hello,

NUnit's attribute-oriented approach has worked well for me, but now, I
would like a number of separately defined tests to run based on the
contents of a config file.  Basically, each test is defined in the
config file as a set of input parameters and a set of items
representing expected application state given the specified input.

I would like to be able to add or remove sets of input and expected
output without having to create or remove a method.  One thing I
considered is to create a single test method that reads the config
file and runs all of the parameter/output sets under a single test,
but I do not want the testing of subsequent parameter/output sets to
be denied when one set fails.  (I hope that makes sense.)

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...)


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


www.sucden.co.uk
Sucden (UK) Limited, 5 London Bridge Street, London SE1 9SG
Telephone +44 20 7940 9400
 
Registered in England no. 1095841
VAT registration no. GB 446 9061 33
Authorised and Regulated by the Financial Services Authority (FSA) and entered in the FSA register under no. 114239

This email, including any files transmitted with it, is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you are not the intended recipient of this message, please notify [email protected] immediately and delete it from your computer system.

We believe, but do not warrant, that this email and its attachments are virus-free, but you should check. 

Sucden (UK) Ltd may monitor traffic data of both business and personal emails. By replying to this email, you consent to Sucden?s monitoring the content of any emails you send to or receive from Sucden. Sucden is not liable for any opinions expressed by the sender where this is a non-business email.
The contents of this e-mail do not constitute advice and should not be regarded as a recommendation to buy, sell or otherwise deal with any particular investment.
This message has been scanned for viruses by BlackSpider MailControl

-------------------------------------------------------------------------
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.