Creating multiple unit tests from a loop in Java
问题 I'm writing unit tests for my (small) program, and the test cases are specified in around 30 different files. To test it, all I need is a loop that goes over all the files, parse them, and execute what's needed. The problem is that in that case, all of my tests will be considered as one, since it's all in the same function with the @Test notation. Is it possible to split it somehow without having to have a separate function for each test file? The problem with all the tests as one test case,