title: JUnit test with dynamic number of tests
body: <p>In our project I have several <a href="http://www.junit.org/" rel="noreferrer">JUnit</a> tests that e.g. take every file from a directory and run a test on it. If I implement a <code>testEveryFileInDirectory</code> method in the <code>TestCase</code> this shows up as only one test that may fail or succeed. But I am interested in the results on each individual file. How can I write a <code>TestCase</code> / <code>TestSuite</code> such that each file shows up as a separate test e.g. in the graphical TestRunner of Eclipse? (Coding an explicit test method for each file is not an option.)</p>
  
  <p>Compare also the question <a href="https://stackoverflow.com/questions/385925/parameterizedtest-with-a-name-in-eclipse-testrunner">ParameterizedTest with a name in Eclipse Testrunner</a>.</p>