Ordering unit tests in Eclipse's JUnit view

后端 未结 7 1517
不知归路
不知归路 2020-12-29 01:58

The JUnit view in Eclipse seems to order the tests randomly. How can I order them by class name?

7条回答
  •  半阙折子戏
    2020-12-29 02:11

    As Gary said in the comments:

    it would be nice if Unit Runner could be told to go ahead and order them by class name. Hmm, maybe I should look into the source code...

    I did look but there's no hint of a functionality to sort these names. I would suggest a change request to the JUnit plugin, but I don't think, that there are lot of people using this thing, so: DIY.

    I would like to see the solution if you modify the plugin code.

提交回复
热议问题