maven - fail build when unit test takes too long

后端 未结 6 2117
广开言路
广开言路 2021-02-12 20:22

I have in my project a lot of unit tests, written in JUnit and TestNG. The building process is based on maven with surefire plugin.

Is there any way/plugin for maven to

6条回答
  •  广开言路
    2021-02-12 20:48

    I once had the same requirement, and since I was using TestNG, I used the "group feature".

    If you're stuck with JUnit, try using the tests suite (http://stackoverflow.com/questions/817135/grouping-junit-tests)

提交回复
热议问题