Android中的junit测试

xiaoxiao2021-02-28  55

<!-- 使用android测试包 --> <uses-library android:name="android.test.runner" /> <!-- android:targetPackage的值应与manifest的package的值一致 --> <instrumentation android:name="android.test.InstrumentationTestRunner" android:targetPackage="com.atguigu.app04_sqlite" /> public class BlackNumberDaoTest extends AndroidTestCase { //测试方法要以test开头,后面拼接要测试的方法,并首字母大写 public void testAdd() { } }
转载请注明原文地址: https://www.6miu.com/read-73885.html

最新回复(0)