【发布时间】:2020-12-01 00:05:56
【问题描述】:
用于 test 和 android tests、单元测试和 UI 测试的 kotlin 库。
如果我将以下两行作为 build.gradle 的一部分编写,它可以正常工作。
我的问题是,这是添加要在测试和 android 测试中使用的库的正确方法
build.gradle
androidTestImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0"
testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0"
感谢您的宝贵建议
谢谢 回复
【问题讨论】:
-
这才是对的方式……其实我没什么要补充的:)
标签: android mockito build.gradle mockito-kotlin