BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

MbUnit RC2 Now Available

| by Jonathan Allen on Sep 25, 2006. Estimated reading time: less than one minute |

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.

 

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

TestNG has @DataProvider by Alex Popescu

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:


@DataProvider(name = "myDataProvider")
public Object[][] createData(Method m) {
return new Object[][] {
new Object[] { "Alex" },
new Object[] { "Cedric" },
};
}

@Test(dataProvider = "myDataProvider")
public void test1(String name) {
// test
}


./alex
--
.w( the_mindstorm )p.
TestNG co-founder
EclipseTestNG Creator

PS: yes, I know I may be biased :-).

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

1 Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT