My TestNG tests are weird... sometimes they finish, but sometimes they don't, even though there is nothing random.
Most of the tests run, then nothing happens, except the TestNG result bar is green, and flickering every few seconds (as if something would happen in the background)
It's not always at the same test method.
The problem occures about every 3. run.
btw., there is no while-loop or something similar in my test classes and tested classes.
I would be really thankful if someone has a solution for my problem. Thanks, Thomas
My Tests look like
public class Test extends BaseTest{
private static final boolean ENABLED = true;
@Test(groups = { GROUP_UNIT }, enabled = ENABLED)
public void valueOfInt() {
Assert.assertEquals(StringUtils.valueOf(5), "5");
}
}
the corresponding method:
public static String valueOf(final Object object) {
return object != null ? object.toString() : "null";
}
with current versions of eclipse and testng the problem does not occur anymore