How can I make my JUnit tests run in random order?

后端 未结 5 2155
我在风中等你
我在风中等你 2020-12-06 04:16

I have the classical structure for tests, I have a test suite of different suites like DatabaseTests, UnitTests etc. Sometimes those suites contains other suites like SlowDa

5条回答
  •  情歌与酒
    2020-12-06 05:09

    I will make sure they are not dependent to each other

    You should make sure that this is the case without relying on random execution order. What makes you fear that dependencies may exist?

提交回复
热议问题