多test如何指定顺序?how to fix the test method order?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

多test如何指定顺序?how to fix the test method order?

taohuang
This post was updated on .
目前是随机的顺序,无法使用@FixMethodOrder(MethodSorters.NAME_ASCENDING) 来设定?

cannot use the @FixMethodOrder(MethodSorters.NAME_ASCENDING) to set the test order.




ngrinder工程依赖的junit-dep:4.8.2似乎不支持这个方法?
MethodSorters.NAME_ASCENDING
Sorts the test methods by the method name, in lexicographic order, with Method.toString() used as a tiebreaker
Reply | Threaded
Open this post in threaded view
|

Re: 多test如何指定顺序?how to fix the test method order?

taohuang
This post was updated on .
I have updated the junit in ngrinder from 4.8.2 to 4.11

我把ngrinder的junit包从4.8.2更新到4.11,修改所有需要依赖junit的module到4.11,然后重新打包整个ngrinder工程后好像正常了,可以支持@FixMethodOrder(MethodSorters.NAME_ASCENDING)

只有升级junit到4.11这一种方法么?