How to define a JUnit method rule in a test suite?

前端 未结 5 1870
孤街浪徒
孤街浪徒 2020-11-30 08:03

I have a class that is a JUnit suite of JUnit test classes. I would like to define a rule on the suite to do something to the database before and a

5条回答
  •  长情又很酷
    2020-11-30 08:48

    You can group tests with TestNG. And you can configure TestNG to run some logic @BeforeGroup and @AfterGroup.

提交回复
热议问题