首页 > 解决方案 > 在 3.0.2 版本中找不到 ToothPickRule 类

问题描述

我将toothpicksdk 版本更新为3.0.2from 1.1.3。更新后,无法ToothPickRuletoothpick. 这导致测试用例失败。

标签: androidunit-testingtestingsdktoothpick-di

解决方案


您需要包含以下依赖项:

testImplementation 'com.github.stephanenicolas.toothpick:toothpick-testing-junit4:3.0.2'

它包含ToothPickRule.

ToothPick 的当前版本是 3.1.0,因此您可能也想更新到它。


推荐阅读