在Eclipse的JUnit视图中排序单元测试 [英] Ordering unit tests in Eclipse's JUnit view
问题描述
Eclipse中的JUnit视图似乎是随机排序测试。如何按类别排序?
The JUnit view in Eclipse seems to order the tests randomly. How can I order them by class name?
推荐答案
正如Gary在评论中所说:
As Gary said in the comments:
如果Unit Runner可以
被告知要继续执行,并以
类名命令,那将是很好的。嗯,也许我应该看看
到源代码...
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...
我看过,但没有一个功能的提示排序这些名字。我会建议对JUnit插件的更改请求,但我不认为有很多人使用这个东西,所以:DIY。
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.
这篇关于在Eclipse的JUnit视图中排序单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!