robolectric专题提供robolectric的最新资讯内容,帮你更好的了解robolectric。
我使用@RunWith(RobolectricTestRunner :: class),我需要使用@RunWith(JUnitParamsRunner :: class) ,我可以一起使用
我的主要活动看起来像<code>MainActivity: FragmentActivity</code>,在我的主要活动中,我有一个startFragment方法,
在<i> Robolectric </i>(单元测试)环境中初始化<code>android.text.format.Time</code>类(<code>Time time = new Time()</code>
我在使用 Roboelectric 或 Powermockito 模拟下面提到的行时遇到了问题 <pre><code>File file = new File(context.getFile
我试图限制焦点如何离开某个 <code>View</code>。使用定向焦点,我只想通过向左或向右,而不是向上或向
我正在尝试使用 Robolectric 和片段场景运行片段单元测试。 当被测片段被实例化时 <pre><code>overrid
我很好奇是否可以在 <a href="https://developers.google.com/ml-kit" rel="nofollow noreferrer">Google ML Kit</a> 单元测试中运
在我的 Roblectric 测试中,我尝试使用 <code>UiDevice</code> 确认权限对话框 <pre><code>@RunWith(RobolectricTestRunne
我想在我的 <a href="https://developer.android.com/reference/android/graphics/Bitmap" rel="nofollow noreferrer">Bitmap</a> 单元测
我正在尝试使用 Roboelectric 运行一个简单的单元测试,但是在尝试构建 Activity 时,我收到以下错误:
我的 <strong>ViewModel</strong> 有一个返回 <strong>PagingData</strong> 流的方法。在我的应用中,数据是从远程服
我正在使用 robolectric 在 android 项目中测试我的 UI。 当我尝试运行任何测试用例时,它会出错: <pre><c
我关注了 Android Developer <a href="https://developer.android.com/training/testing/unit-testing/local-unit-tests#include-framework-de
我有使用 robolectric 编写单元测试的演示者(MVP)代码,<strong>Completable.timer</strong> 进入另一个线程,它
我需要为 Android 生物识别提示编写单元测试用例。我试图搜索许多链接,但没有找到正确的方向。需要
我正在使用 Robolectric 编写端到端测试,该测试触发对 OkHttp <code>MockWebServer</code> 的 HTTP 调用。它看起来
我已经为此(几天)寻找了很多解决方案,但还没有找到解决方案。基本上,对于我使用 Robolectric 的单
我正在尝试对我的视图模型代码进行单元测试,该代码执行服务器轮询以在其 <code>Status == ELIGIBLE</code>
我正在使用这种方法来存储来自相机的图像。如何为此 <strong>getRealPathfromURI()</strong> 方法编写单元测试
我是使用 Roboelectric 测试框架的新手,我遇到的问题是无法构建活动。我在每个课程中都使用了相同的精