閱讀286 返回首頁    go 阿裏雲 go 技術社區[雲棲]


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

原文:https://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.


最後更新:2017-04-03 16:48:36

  上一篇:go Design Pattern: Adapter 模式 - Class Adapter
  下一篇:go 第四章 Spring與JDBC的整合