MbUnit RC2 Now Available
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.
TestNG has @DataProvider
by
Alex Popescu
@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 :-).
Educational Content
Intro to CLP with core.logic
Ryan Senior Jun 18, 2013
Spock: A Highly Logical Way To Test
Howard Lewis Ship Jun 18, 2013
Java Garbage Collection Distilled
Martin Thompson Jun 17, 2013
C++11 The Future is Here
Bjarne Stroustrup Jun 16, 2013
The Big Data Revolution
Claudia Perlich Jun 16, 2013




Hello stranger!
You need to Register an InfoQ account 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