对android平台进行单元测试 [英] Unit testing the android platform

查看:54
本文介绍了对android平台进行单元测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我终于能够构建和调试 android 平台(过程可以在 这里看到).现在,问题是:单元测试在哪里,我如何启动它们以及在哪里看到结果?

So, I was finally able to build and debug the android platform (the process can be seen here). Now, the question is: where are the unit tests, how do I launch them and where do I see results?

还有,有没有安卓平台架构的指南?

And also, is there any guide to android platform architecture?

推荐答案

我想没有办法在 Android src 上运行每个单元测试.

I guess there is no way to run every unit test on Android src.

我不知道 C 代码,但你可以在一些 git 存储库中看到它,其中包含诸如 Contacts 他们有一个测试文件夹,这是一个 android 测试项目.您可以在此处查看如何运行它们.

I don't know about the C code, but you can see that inside some git repos holding Android apps like Contacts they have a tests folder which is an android test project. You can check how to run them here.

这篇关于对android平台进行单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆