Dienstag, 2. März 2010

TwiP for Parameterized JUnit Tests

The native parameterized JUnit 4.X tests allows only one data set per test. With TwiP you can define one data set per test method, thats cool. Here a example  parameterized JUnit test with TwiP:



What not works in TwiP is the tree navigation (tested only in eclipse), because the mapping between the test tree result and the test methods is done by the name in the result tree. But TwiP add the paramter of the run in the name and then the mapping don't work :-( see the screenshot bellow, when you click on a test method you become a error dialog:



Links: