现在的位置: 首页 > 综合 > 正文

What is the purpose of @SmallTest, @MediumTest, and @LargeTest annotations in Android?

2013年08月05日 ⁄ 综合 ⁄ 共 394字 ⁄ 字号 评论关闭

原文:http://stackoverflow.com/questions/4671923/what-is-the-purpose-of-smalltest-mediumtest-and-largetest-annotations-in-an

This blog post explains it best. Basically, it is the following:

  1. Small: this test doesn't interact with any file system or network.
  2. Medium: Accesses file systems on box which is running tests.
  3. Large: Accesses external file systems, networks, etc.

See
this page
(search for "@SmallTest") on how to specify which tests get run.

抱歉!评论已关闭.