AndroidJvmJunitTestSpike:Spike 测试如何在多模块 Android 项目中使用 jvm Junit 测试-源码

上传者: 42137723 | 上传时间: 2021-06-22 11:05:16 | 文件大小: 115KB | 文件类型: ZIP
Spike 测试 Android 对 Junit JVM 测试的支持。 最近 Google 添加了,支持在 Java VM 上运行 Junit 测试。 这加快了测试执行速度。 目标 查看是否可以在 Android 库项目中添加 Junit 测试。 找出 Junit 测试是否可以依赖于 R 类。 找出 Junit 测试是否可以依赖于 Android 库项目的类。 当前状态 28-02-2015, 20:00 努力找出如何生成 AndroidManifest,并通过 R 类在 jvm 中可用。 在 sut (Subject Under Test) 中,我添加了以下方法: public void referenceDrawableFromR() { System.out.println("Reference drawable!" + com.squins.common.R

文件下载

资源详情

[{"title":"( 41 个子文件 115KB ) AndroidJvmJunitTestSpike:Spike 测试如何在多模块 Android 项目中使用 jvm Junit 测试-源码","children":[{"title":"AndroidJvmJunitTestSpike-master","children":[{"title":"gradlew.bat <span style='color:#111;'> 2.26KB </span>","children":null,"spread":false},{"title":"gradlew <span style='color:#111;'> 4.96KB </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 11.06KB </span>","children":null,"spread":false},{"title":"app","children":[{"title":"proguard-rules.pro <span style='color:#111;'> 653B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"squins","children":[{"title":"app","children":[{"title":"SomeClassInOtherModuleTest.java <span style='color:#111;'> 401B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"androidTest","children":[{"title":"java","children":[{"title":"com","children":[{"title":"squins","children":[{"title":"androidsjvmjunittestspike","children":[{"title":"ApplicationTest.java <span style='color:#111;'> 367B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"res","children":[{"title":"menu","children":[{"title":"menu_main.xml <span style='color:#111;'> 361B </span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.34KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 195B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 194B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 211B </span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.54KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.73KB </span>","children":null,"spread":false}],"spread":false},{"title":"layout","children":[{"title":"activity_main.xml <span style='color:#111;'> 621B </span>","children":null,"spread":false}],"spread":false},{"title":"values-w820dp","children":[{"title":"dimens.xml <span style='color:#111;'> 358B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"squins","children":[{"title":"androidsjvmjunittestspike","children":[{"title":"MainActivity.java <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 702B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 614B </span>","children":null,"spread":false}],"spread":true},{"title":"gradle","children":[{"title":"wrapper","children":[{"title":"gradle-wrapper.jar <span style='color:#111;'> 48.73KB </span>","children":null,"spread":false},{"title":"gradle-wrapper.properties <span style='color:#111;'> 230B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"common","children":[{"title":"proguard-rules.pro <span style='color:#111;'> 653B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"squins","children":[{"title":"common","children":[{"title":"SomeClassReferencingRTest.java <span style='color:#111;'> 208B </span>","children":null,"spread":false},{"title":"SomeClassTest.java <span style='color:#111;'> 226B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"androidTest","children":[{"title":"java","children":[{"title":"com","children":[{"title":"squins","children":[{"title":"common","children":[{"title":"ApplicationTest.java <span style='color:#111;'> 348B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"res","children":[{"title":"drawable","children":[{"title":"sample.png <span style='color:#111;'> 3.40KB </span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.34KB </span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 69B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 194B </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.54KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.73KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"squins","children":[{"title":"common","children":[{"title":"SomeClass.java <span style='color:#111;'> 258B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 285B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 650B </span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 72B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 2.57KB </span>","children":null,"spread":false},{"title":"settings.gradle <span style='color:#111;'> 26B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 436B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明