How to parameterize junit Test Suite

后端 未结 7 1948
梦毁少年i
梦毁少年i 2021-01-14 06:42

Is it possible to parameterize a TestSuite in junit 4 ?

For declaring a class as a test suite I need the annotation @RunWith(Suite.class), but the same

7条回答
  •  Happy的楠姐
    2021-01-14 07:25

    Maybe this answer helps: Parameterized unit test suites

    It uses @RunWith(Enclosed.class) and seems to solve the problem.

提交回复
热议问题