Test order with espresso

前端 未结 7 876
天涯浪人
天涯浪人 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:04

    Add the annotation @FixMethodOrder(MethodSorters.NAME_ASCENDING) on top of the class name and name the methods in ascending order.

    Please see the below links. The answer is there to achieve your need.

    https://stackoverflow.com/a/41198659/4675067

    https://stackoverflow.com/a/34456810/4675067

提交回复
热议问题