MBUnit, an advanced unit testing framework, has reached Release Candidate 2 stage. This "generative" unit test framework claims to offer features that surpass both nUnit and Visual Studio Team System.
The original write-up, posted back in February of 2004, didn't seem all that impressive. It came with some built-in support for types of tests such as enumerations and the promise of a superior framework.
Two and a half years later, that promise is nearly fulfilled. One especially promising feature is the RowTest attribute. Instead of writing a separate test for each set of inputs, developers can use attributes to specify sets of values. Developers can even specify invalid values along with expected exceptions. Another promising feature is the ability to wrap tests in COM+ transactions via the RollBack attribute.
One glaring issue is the lack of good online documentation. The documentation is sparse and incomplete with many of the images missing. Often the entries are links to other web sites, and in at least one instance a Google cache of an old blog posting.
While MBUnit currently lacks the polish professional developers have come to expect, it is definitely one to watch.
Community comments
TestNG has @DataProvider
by Alex Popescu,
TestNG has @DataProvider
by Alex Popescu,
Your message is awaiting moderation. Thank you for participating in the discussion.
TestNG Java test framework has had advanced support for parameters for quite a long time. You can define some static values using the suite definition, but you can also create them dynamically using @DataProvider annotated methods. Here is a quick example:
./alex
--
.w( the_mindstorm )p.
TestNG co-founder
EclipseTestNG Creator
PS: yes, I know I may be biased :-).