Has JUnit4 begun supporting ordering of test? Is it intentional?

前端 未结 6 2175
攒了一身酷
攒了一身酷 2020-11-30 12:51

A newbie to JUnit (in fact JUnit 4) and came across suite way of executing test

@RunWith(Suite.class)
@Suite.SuiteClasses(
        {                                  


        
6条回答
  •  醉酒成梦
    2020-11-30 13:16

    Just bypass it by ordering the names of the class by using an _# before the class name. Ex _1testcaselogin _2testcaseverify

提交回复
热议问题