BT

MbUnit RC2 Now Available

by Jonathan Allen on Sep 25, 2006 |

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.

 

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

Educational Content

General Feedback
Bugs
Advertising
Editorial
InfoQ.com and all content copyright © 2006-2014 C4Media Inc. InfoQ.com hosted at Contegix, the best ISP we've ever worked with.
Privacy policy
BT