首页    期刊浏览 2025年07月15日 星期二
登录注册

文章基本信息

  • 标题:Tracing Naming Semantics in Unit Tests of Popular Github Android Projects
  • 本地全文:下载
  • 作者:Matej Madeja ; Jaroslav Porub{"a}n
  • 期刊名称:OASIcs : OpenAccess Series in Informatics
  • 电子版ISSN:2190-6807
  • 出版年度:2019
  • 卷号:74
  • 页码:1-13
  • DOI:10.4230/OASIcs.SLATE.2019.3
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要:The tests are so closely linked to the source code that we consider them up-to-date documentation. Developers are aware of recommended naming conventions and other best practices that should be used to write tests. In this paper we focus on how the developers test in practice and what conventions they use. For the analysis 5 very popular Android projects from Github were selected. The results show that 49 % of tests contain full and 76 % of tests contain a partial unit under test (UUT) method name in their name. Further, there was observed that UUT was only rarely tested by multiple test classes and thus in cases when the tester wanted to distinguish the way he or she worked with the tested object. The analysis of this paper shows that the word "test" in the test title is not a reliable metric for identifying the test. Apart from assertions, the developers use statements like verify, try-catch and throw exception to verify the correctness of UUT functionality. At the same time it was found out that the test titles contained.
  • 关键词:unit tests; android; real testing practices; unit tests; program comprehension
国家哲学社会科学文献中心版权所有