Running benchmark methods in a JUnit test class

后端 未结 1 1890
离开以前
离开以前 2021-01-28 17:26

I have a test class MyTestClass with several typical test methods that do assertions or check for exceptions and are annotated with @Test. They run wh

1条回答
  •  不知归路
    2021-01-28 18:08

    I think you probably want to look at JUnit Categories. There are other answers that detail how to execute specific categories from ant.

    How to run all JUnit tests in a category/suite with Ant?
    How to run all tests belonging to a certain Category in JUnit 4

    Some external links that may be of use:
    Grouping tests using JUnit categories
    A Closer Look at JUnit Categories

    0 讨论(0)
提交回复
热议问题