Re: Updates to NUnit 2.5
"Charlie Poole" <[email protected]> Mon, 30 Jun 2008 19:11:42 -0700
| Newsgroups | gmane.comp.windows.dotnet.nunit.devel |
|---|---|
| Message-ID | <002201c8db1f$cf98dcf0$6401a8c0@ferrari> |
Hi All, Latest checkins include new version numbering scheme for NUnit and generic parameterized test methods. The NUnit 2.5 Alphas were both numbered 2.5.0.0, which could be confusing. From now the release builds will carry a build number in the fourth position, of the form yddd, where y is the last digit of the year and ddd is the day number within the year. So, if 2.5 were released today, it would be 2.5.0.8182. Parameterized test methods can now be generic and NUnit will provide an appropriate specialization of the method for each set of parameters provided. This is actually of limited utility by itself, but will be more useful in combination with the support for generic fixtures I'm currently working on. Charlie > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On > Behalf Of Charlie Poole > Sent: Friday, June 27, 2008 10:42 AM > To: [email protected] > Subject: Re: [nunit-developer] Updates to NUnit 2.5 > > Checked in a VS2008 build and blogged about it here: > http://nunit.org/blogs/?p=61 > > Charlie > > > -----Original Message----- > > From: [email protected] > > [mailto:[email protected]] On Behalf Of > > Charlie Poole > > Sent: Sunday, June 22, 2008 9:29 AM > > To: [email protected] > > Subject: Re: [nunit-developer] Updates to NUnit 2.5 > > > > More updates checked into CVS. All of this will be > documented for the > > release, but some of you may want an early heads-up, > especially if you > > are working on addins. > > > > EXTENSIBILITY > > > > The ParameterProviders extension point has been renamed to > > TestCaseProviders. The interface that extensions must > implement is now > > ITestCaseProvider. Here's the definition: > > > > public interface ITestCaseProvider > > { > > bool HasTestCasesFor(MethodInfo method); > > IEnumerable GetTestCasesFor(MethodInfo method); > > } > > > > This is essentially the same as the IParameterProvider interface in > > the first two alphas. > > > > BUILT-IN PARAMETERIZED TESTS > > > > NUnit currently has two built-in providers: > > TestCaseParameterProvider for TestCaseAttribute and > > TestCaseFactoryProvider for FactoryAttribute. > > > > TestCaseParameterProvider will perform a number of conversions in > > order to make the provided argument compatible with method call. > > > > TestCaseFactoryProvider can work with properties, methods > and fields > > that implement IEnumerable. For static cases, use of an > array is the > > simplest approach. Either static or instance members may be > used. For > > methods takin a single ValueType argument, the enumerator > may return > > the bare argument rather than an array with one member. > > > > All of the above work at load time. For dynamic test cases, > provided > > at the instance of executin the test and possibly varying > from run to > > run, I plan to add DynamicTest and DynamicTestCaseProvider. > > > > OTHER STUFF > > > > The RequiredAddinAttribute may be placed on the assembly, > on a class > > or on a method. If the named addin is not loaded, the test > or suite is > > NotRunnable and shows up as red in the Gui. > > > > Charlie > > > > > -----Original Message----- > > > From: [email protected] > > > [mailto:[email protected]] On > Behalf Of > > > Charlie Poole > > > Sent: Monday, June 16, 2008 12:14 PM > > > To: [email protected] > > > Subject: [nunit-developer] Updates to NUnit 2.5 > > > > > > Hi All, > > > > > > Now that I'm back home, I can properly upload a number of > changes I > > > made on my laptop while travelling. > > > > > > So far, I have made the following changes: > > > > > > 1. The release is now 2.5 Alpha 3. > > > > > > 2. I have changed DataSourceAttribute to FactoryAttribute > > and it may > > > now appear on a property, field or method. Any of these may > > be either > > > static or instance members. > > > > > > 3. IParameterProvider.GetParametersFor(MethodInfo method) > > now returns > > > IEnumerable rather than IList. > > > > > > 4. The Test abstract class now has default implementations > > for several > > > properties that were previously abstract. One of the > > > Run() overloads has been removed. > > > > > > I'll post further as more changes are made. > > > > > > Charlie > > > > > > > > > > > > > > > -------------------------------------------------------------- > > > ----------- > > > Check out the new SourceForge.net Marketplace. > > > It's the best place to buy or sell services for just > about anything > > > Open Source. > > > http://sourceforge.net/services/buy/index.php > > > _______________________________________________ > > > nunit-developer mailing list > > > [email protected] > > > https://lists.sourceforge.net/lists/listinfo/nunit-developer > > > > > > > > > > > -------------------------------------------------------------- > > ----------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for just about anything > > Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ > > nunit-developer mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/nunit-developer > > > > > > -------------------------------------------------------------- > ----------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for just about > anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > nunit-developer mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/nunit-developer > ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php