JUnit test with dynamic number of tests

前端 未结 7 639
灰色年华
灰色年华 2020-11-30 18:42

In our project I have several JUnit tests that e.g. take every file from a directory and run a test on it. If I implement a testEveryFileInDirectory method in t

7条回答
  •  旧巷少年郎
    2020-11-30 19:18

    I had a similar problem and ended up writing a simple JUnit 4 runner that allows med to dynamically generate tests.

    https://github.com/kimble/junit-test-factory

提交回复
热议问题