首页 开发技术 其它     /    DeviceAnimationTestRule:一个禁用和启用设备动画的JUnit规则-源码

DeviceAnimationTestRule:一个禁用和启用设备动画的JUnit规则-源码

上传者: weixin_42175776 | 上传时间:2025/4/2 1:34:49 | 文件大小:105KB | 文件类型:ZIP
DeviceAnimationTestRule:一个禁用和启用设备动画的JUnit规则-源码
DeviceAnimationTestRule使用Espresso在Android上运行检测测试需要禁用动画。
DeviceAnimationTestRule是一个JUnit规则,可在运行任何测试之前禁用设备动画,并在执行每个测试之后启用它们。
该解决方案只是在其提出的解决方案的包装。
设置添加到顶级gradle.build文件allprojects{repositories{maven{url"https://jitpack.io"}}}添加到应用程序模块gradle.build文件dependencies{androidTestImplementation'com.github.VictorAlbertos:DeviceAnimationTestRule:0.0.3'}用法添加到Androi 本软件ID:15504824

文件下载

资源详情

[{"title":"(30个子文件105KB)DeviceAnimationTestRule:一个禁用和启用设备动画的JUnit规则-源码","children":[{"title":"DeviceAnimationTestRule-master","children":[{"title":"gradlew <span style='color:#111;'>4.85KB</span>","children":null,"spread":false},{"title":"settings.gradle <span style='color:#111;'>54B</span>","children":null,"spread":false},{"title":"LICENSE.txt <span style='color:#111;'>11.09KB</span>","children":null,"spread":false},{"title":".travis.yml <span style='color:#111;'>510B</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;'>52.38KB</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"README.md <span style='color:#111;'>1.31KB</span>","children":null,"spread":false},{"title":"test-sample","children":[{"title":"src","children":[{"title":"androidTest","children":[{"title":"java","children":[{"title":"io","children":[{"title":"victoralbertos","children":[{"title":"deviceanimationtestrule","children":[{"title":"DeviceAnimationDisabledTestRuleTest.kt <span style='color:#111;'>1.54KB</span>","children":null,"spread":false},{"title":"SuiteIntegration.kt <span style='color:#111;'>922B</span>","children":null,"spread":false},{"title":"DeviceAnimationEnabledTestRuleTest.kt <span style='color:#111;'>1.34KB</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"AndroidManifest.xml <span style='color:#111;'>677B</span>","children":null,"spread":false},{"title":"res","children":[{"title":"mipmap-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>3.34KB</span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-xxxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>10.24KB</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":"mipmap-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>2.15KB</span>","children":null,"spread":false}],"spread":false},{"title":"layout","children":[{"title":"animation_sample_activity.xml <span style='color:#111;'>550B</span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'>84B</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}],"spread":true},{"title":"java","children":[{"title":"io","children":[{"title":"victoralbertos","children":[{"title":"deviceanimationtestrule","children":[{"title":"AnimationSampleActivity.kt <span style='color:#111;'>1.31KB</span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"build.gradle <span style='color:#111;'>1.29KB</span>","children":null,"spread":false},{"title":"proguard-rules.pro <span style='color:#111;'>680B</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;'>881B</span>","children":null,"spread":false},{"title":"device-animation-test-rule","children":[{"title":"src","children":[{"title":"main","children":[{"title":"AndroidManifest.xml <span style='color:#111;'>228B</span>","children":null,"spread":false},{"title":"res","children":[{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'>87B</span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"java","children":[{"title":"io","children":[{"title":"victoralbertos","children":[{"title":"device_animation_test_rule","children":[{"title":"DeviceAnimationTestRule.java <span style='color:#111;'>4.09KB</span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"build.gradle <span style='color:#111;'>1.53KB</span>","children":null,"spread":false},{"title":"proguard-rules.pro <span style='color:#111;'>680B</span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'>415B</span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'>750B</span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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