AndroidTestIntegration:android 测试集成(junit、espresso、cobertura)-源码

上传者: 42138139 | 上传时间: 2021-07-02 11:03:12 | 文件大小: 570KB | 文件类型: ZIP
Android测试集成 #####Android 带有调试器的 android studio 测试集成 它有 3 个主要成分,分别是junit、espresso、cobertura。 Junit 是用于 Java 单元测试的流行库。 Espresso 是 android ui 测试框架。 Cobertural 是 Java 测试覆盖率工具。 他们都用gradle运行。 如何使用 使用 junit 运行单元测试 ./gradle test 单元测试后,您可以在${projectDir}/test_reports看到报告 有两份报告。 1. JUnit,2. 覆盖范围 使用 espresso 运行 android UI 测试 ./gradle connectedAndroidTest 使用调试器运行 junit 如果要使用调试器运行测试,则必须使用 gradle 选项作为-Dte

文件下载

资源详情

[{"title":"( 48 个子文件 570KB ) AndroidTestIntegration:android 测试集成(junit、espresso、cobertura)-源码","children":[{"title":"AndroidTestIntegration-master","children":[{"title":"gradlew <span style='color:#111;'> 4.96KB </span>","children":null,"spread":false},{"title":"settings.gradle <span style='color:#111;'> 24B </span>","children":null,"spread":false},{"title":"AndroidTestIntegration.iml <span style='color:#111;'> 877B </span>","children":null,"spread":false},{"title":".idea","children":[{"title":"misc.xml <span style='color:#111;'> 814B </span>","children":null,"spread":false},{"title":"compiler.xml <span style='color:#111;'> 711B </span>","children":null,"spread":false},{"title":"gradle.xml <span style='color:#111;'> 612B </span>","children":null,"spread":false},{"title":".name <span style='color:#111;'> 22B </span>","children":null,"spread":false},{"title":"encodings.xml <span style='color:#111;'> 166B </span>","children":null,"spread":false},{"title":"modules.xml <span style='color:#111;'> 484B </span>","children":null,"spread":false},{"title":"scopes","children":[{"title":"scope_settings.xml <span style='color:#111;'> 139B </span>","children":null,"spread":false}],"spread":true},{"title":"copyright","children":[{"title":"profiles_settings.xml <span style='color:#111;'> 74B </span>","children":null,"spread":false}],"spread":true},{"title":"vcs.xml <span style='color:#111;'> 166B </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 11.06KB </span>","children":null,"spread":false},{"title":"gradle","children":[{"title":"wrapper","children":[{"title":"gradle-wrapper.properties <span style='color:#111;'> 232B </span>","children":null,"spread":false},{"title":"gradle-wrapper.jar <span style='color:#111;'> 48.73KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"test.iml <span style='color:#111;'> 2.27KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"java","children":[{"title":"com","children":[{"title":"limotaxi","children":[{"title":"androidtestintegration","children":[{"title":"model","children":[{"title":"UserTest.java <span style='color:#111;'> 270B </span>","children":null,"spread":false},{"title":"AdminTest.java <span style='color:#111;'> 323B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"build.gradle <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 2.02KB </span>","children":null,"spread":false},{"title":"screenshots","children":[{"title":"junit_reports.png <span style='color:#111;'> 42.84KB </span>","children":null,"spread":false},{"title":"cobertura.png <span style='color:#111;'> 43.35KB </span>","children":null,"spread":false},{"title":"structure.png <span style='color:#111;'> 293.37KB </span>","children":null,"spread":false},{"title":"configuration.png <span style='color:#111;'> 117.09KB </span>","children":null,"spread":false}],"spread":true},{"title":"gradlew.bat <span style='color:#111;'> 2.35KB </span>","children":null,"spread":false},{"title":"gradle.properties <span style='color:#111;'> 855B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 282B </span>","children":null,"spread":false},{"title":"app","children":[{"title":"src","children":[{"title":"androidTest","children":[{"title":"java","children":[{"title":"com","children":[{"title":"limotaxi","children":[{"title":"androidtestintegration","children":[{"title":"MainActivityTest.java <span style='color:#111;'> 717B </span>","children":null,"spread":false},{"title":"ApplicationTest.java <span style='color:#111;'> 366B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"main","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 703B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 9.18KB </span>","children":null,"spread":false}],"spread":false},{"title":"menu","children":[{"title":"menu_main.xml <span style='color:#111;'> 361B </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 5.11KB </span>","children":null,"spread":false}],"spread":false},{"title":"layout","children":[{"title":"activity_main.xml <span style='color:#111;'> 699B </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 18.93KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 14.05KB </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},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 232B </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":false}],"spread":false},{"title":"java","children":[{"title":"com","children":[{"title":"limotaxi","children":[{"title":"androidtestintegration","children":[{"title":"model","children":[{"title":"User.java <span style='color:#111;'> 204B </span>","children":null,"spread":false},{"title":"Admin.java <span style='color:#111;'> 211B </span>","children":null,"spread":false}],"spread":false},{"title":"MainActivity.java <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"app.iml <span style='color:#111;'> 7.85KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"proguard-rules.pro <span style='color:#111;'> 656B </span>","children":null,"spread":false}],"spread":true},{"title":"build.gradle <span style='color:#111;'> 436B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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