Manifest and setup issues getting Robolectric working with Android Studio 1.1.0

前端 未结 6 1545
盖世英雄少女心
盖世英雄少女心 2021-01-18 07:29

I am trying to get Robolectric tests up and working in our current project, and not having a lot of luck. My preference would be to get these to run within Android Studio 1

6条回答
  •  说谎
    说谎 (楼主)
    2021-01-18 08:33

    I just changed to:

    @RunWith(RobolectricTestRunner.class)
    

    and it works. All the other config stuff seems to be unnecessary.

提交回复
热议问题