Excluding a non param test in parameterized test class

前端 未结 10 820
粉色の甜心
粉色の甜心 2020-12-02 19:32

Is there any annotation in JUnit to exclude a non param test in parameterized test class?

10条回答
  •  遥遥无期
    2020-12-02 20:35

    Assuming you use Parametrized.class to run your test class - mark all non-parametrized tests as @Ignored. Otherwise you can make a static inner class to group all your parametrized tests and another - for non-parametrized.

提交回复
热议问题