Understanding Test Convention Consistency as a Dimension of Test Quality

被引:0
|
作者
Robillard, Martin P. [1 ]
Nassif, Mathieu [1 ]
Sohail, Muhammad [1 ]
机构
[1] McGill Univ, Sch Comp Sci, Montreal, PQ, Canada
基金
加拿大自然科学与工程研究理事会;
关键词
Software Testing; Test Quality; Test Conventions; Inconsistency Detection; STATIC ANALYSIS;
D O I
10.1145/3672448
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Unit tests must be readable to help developers understand and evolve production code. Most existing test quality metrics assess test code's ability to detect bugs. Few metrics focus on test code's readability. One standard approach to improve readability is the consistent application of conventions. We investigated test convention consistency as a dimension of test quality. We formalized test suite consistency as the extent to which alternatives are used within a code base and introduce two complementary metrics to capture this extent. We elaborated a catalog of over 30 test conventions for the Java language organized in 10 convention classes that group mutual alternatives. We developed tool support to detect occurrences of conventions, compute consistency metrics over a test suite, and view occurrences of conventions in the corresponding code. We applied our tools to study the consistency of the test suites of 20 large open source Java projects. The study validates the design of the test convention classes, provides descriptive statistics on the range of consistency values for 10 different convention classes, and enables us to link observed changes in consistency values to specific events in the change history of our target systems, thus providing evidence of the construct validity of the metrics. We conclude that analyzing test suite consistency via static analysis shows promise as a practical approach to help improve test suite quality.
引用
收藏
页数:39
相关论文
共 50 条
  • [41] Consistency of Grease, test method and meaning
    Komiya, Hiroshi
    Toraibarojisuto/Journal of Japanese Society of Tribologists, 2012, 57 (10): : 701 - 708
  • [42] Consistency of the Casagrande Liquid Limit Test
    Haigh, Stuart
    GEOTECHNICAL TESTING JOURNAL, 2016, 39 (01): : 13 - 19
  • [43] UNDERSTANDING THE TURING TEST
    Larsson, Jan Eric
    ICGA JOURNAL, 2011, 34 (01) : 61 - 63
  • [44] On delay test quality for test cubes
    Oku S.
    Kajihara S.
    Sato Y.
    Miyase K.
    Wen X.
    IPSJ Transactions on System LSI Design Methodology, 2010, 3 : 283 - 291
  • [45] Asynchronous Test Hardware for Null Convention Logic
    Nemati, Nastaran
    Reed, Mark C.
    Frater, Michael R.
    2014 IEEE INTERNATIONAL SYMPOSIUM ON CIRCUITS AND SYSTEMS (ISCAS), 2014, : 1744 - 1747
  • [46] TEST FOR QUALITY
    REA, RD
    INDUSTRIAL FINISHING, 1980, 56 (02): : 9 - 9
  • [47] A test of quality
    George, Alan
    Cleanroom Technology, 2008, 15 (11): : 11 - 13
  • [48] Understanding test accuracy research: a test consequence graphic
    Penny Whiting
    Clare Davenport
    Diagnostic and Prognostic Research, 2 (1)
  • [49] Test Cost-Test Quality Modeling For Adaptive Test
    Demiray, Bekir Zahit
    Arslan, Baris
    PROCEEDINGS OF 2022 IEEE INTERNATIONAL CONFERENCE ON AUTOMATION, QUALITY AND TESTING, ROBOTICS (AQTR 2022), 2022, : 47 - 51
  • [50] ON SOME TEST SPACES IN DIMENSION THEORY
    FORA, AA
    FUNDAMENTA MATHEMATICAE, 1981, 111 (01) : 19 - 23