Test order with espresso

前端 未结 7 811
天涯浪人
天涯浪人 2021-01-01 10:20

Is there a way to set test running order in android?
I use Espresso framework and need to test a lot of activities and transitions between them. I want to write differen

相关标签:
7条回答
  • 2021-01-01 11:13

    As @spinster said above, you should write your tests in a way where order doesn't matter.

    I believe Junit 3 will run tests in alphabetical order of the fully qualified class name, so in theory you could control the order by naming them ( package name, class name, method name ) alphabetically in the order you would like them executed, but I would not recommend that.

    See: How to run test methods in specific order in JUnit4? How to pre-define the running sequences of junit test cases?

    0 讨论(0)
提交回复
热议问题