English 中文(简体)
海底来源代码中的测试用途是什么?
原标题:what is the use of tests present in android source code?

如果您下载过任何海底来源代码,那么几乎所有应用和基础框架都会看到一个试验夹。

我想知道,我们是否在从源代码上建立k子时也建立试验守则,或者这只是供我们参考。

如果由后者使用,那么使用的最佳方式是什么? 请让我说,在海底源代码中,准确使用了检测。

最佳回答

当你在建源时,检测不会自动进行。 然而,如果你想要的话,你可以人工操作。

如果你想这样做,指挥部应当:

build/envsetup.sh
emulator &
development/testrunner/runtest.py android

See this thread for a bit more information on this:
http://groups.google.com/group/android-platform/browse_thread/thread/a0eec9692f5072ba

问题回答

(unit)测试可能只是让任何扩大来源的人能够确保变革不会带来意外的行为。 它还发出信息,即谷歌遵循良好的软件开发做法,测试其代码,而不仅仅是最终结果。

所有这些都说,没有下载来文方,只是分析你对你所看到的描述。

<><>Edit>: 当然,排除这些试验当然没有任何意义,因为它们同样是公开的。 这些文件还有助于开发商了解,如果文件不明确,预期的行为是什么。





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签