Dynamically Defining Tests from Config File
"Brandon Payton" <[email protected]>
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <[email protected]> |
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