2
sjwsjwsjw
79d

testng: if the name doesn't match (fubar locales whatever idk) doesn't match the corresponding test that uses it it'll just silently ignore instead of failing or running the test at all

@DataProvider(name="fubar")
public Object[][]{
//test data setup
}

@Test(dataProvider = "locales")
public void testWhatever(){}

whoever designed it to be this way: why?

Comments
  • 1
    I guess sometimes is hard to decide on how to handle errors. whether to throw or to recover.

    I'd say in this case it should throw as you say. I don't see the point of silently ignoring in a testing framework
Add Comment