Ordering unit tests in Eclipse's JUnit view

后端 未结 7 1507
不知归路
不知归路 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:17

    11 years later, the JUnit view does have name ordering, and just got "Execution time" ordering as well.
    See Eclipse 4.17 (2020-09)

    Sort test results by execution time

    JUnit view now provides the ability to sort results by execution time.

    By default, results will be sorted by execution order.
    Choosing Sort By > Execution Time from the JUnit View menu will reorder the results once all tests are complete.

    While tests are still running, they will be shown in execution order.

    Sorting by execution order results in:

提交回复
热议问题