TASTING: Reuse Test-case Execution by Global AST Hashing

被引:0
|
作者
Landsberg, Tobias [1 ]
Dietrich, Christian [2 ]
Lohmann, Daniel [1 ]
机构
[1] Leibniz Univ Hannover, Hannover, Germany
[2] Tech Univ Hamburg, Hamburg, Germany
关键词
Regression Test Selection; Testing; Continuous Integration; Static Analysis; SELECTION;
D O I
10.5220/0011139200003266
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We describe TASTING, an approach for efficiently selecting and reusing regression-test executions across program changes, branches, and variants in continuous integration settings. Instead of detecting changes between two variants of the software-under-test, TASTING recursively composes hashes of the defining elements with all their dependencies on AST-level at compile time into a semantic fingerprint of the test and its execution environment. This fingerprint is easy to store and remains stable across changes if the test's run-time behavior is not affected. Thereby, we can reuse test results across the history, multiple branches, and static compile-time variants. We applied TASTING to three open-source projects (Zephyr, OpenSSL, FFmpeg). Over their development history, we can omit between 10 percent (FFmpeg) and 95 percent (Zephyr) of all test executions at a moderate increase in build time. Furthermore, TASTING enables even higher savings across multiple checkouts (e.g., forks, branches, clones) and static software variants. Over the first changes to 131 OpenSSL forks, TASTING avoids 56 percent redundant test executions; for the Zephyr test matrix (64 variants), we reduce the number of test executions by 94 percent.
引用
收藏
页码:33 / 45
页数:13
相关论文
共 50 条
  • [41] CRITICAL ELECTIONS AND PARTISAN REALIGNMENT - URBAN TEST-CASE
    ALVAREZ, DJ
    TRUE, EJ
    [J]. POLITY, 1973, 5 (04) : 563 - 576
  • [42] A TEST-CASE OF MODERN-ART - CEZANNE 'BATHERS'
    KENDALL, R
    [J]. APOLLO-THE INTERNATIONAL MAGAZINE OF THE ARTS, 1989, 130 (333): : 337 - 338
  • [43] EVALUATING MODELS OF SEXUAL SELECTION - GENITALIA AS A TEST-CASE
    EBERHARD, WG
    [J]. AMERICAN NATURALIST, 1993, 142 (03): : 564 - 571
  • [44] MULTICULTURALISM AND THE QUESTION OF AUDIENCE, 'ADAM BEDE' AS A TEST-CASE
    ERICKSON, JQ
    [J]. VICTORIAN NEWSLETTER, 1994, (85): : 20 - 25
  • [45] Mutation-Based Test-Case Generation with Ecdar
    Larsen, Kim G.
    Lorber, Florian
    Nielsen, Brian
    Nyman, Ulrik M.
    [J]. 10TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS - ICSTW 2017, 2017, : 319 - 328
  • [46] HERBIVORE DEME FORMATION ON INDIVIDUAL TREES - A TEST-CASE
    COBB, NS
    WHITHAM, TG
    [J]. OECOLOGIA, 1993, 94 (04) : 496 - 502
  • [47] Oncology training for the gastroenterologist: A test-case for subspecialization in gastroenterology?
    Terdiman, Jonathan P.
    [J]. GASTROENTEROLOGY, 2008, 135 (04) : 1028 - 1031
  • [48] Adaptive Test-Case Prioritization Guided by Output Inspection
    Hao, Dan
    Zhao, Xu
    Zhang, Lu
    [J]. 2013 IEEE 37TH ANNUAL COMPUTER SOFTWARE AND APPLICATIONS CONFERENCE (COMPSAC), 2013, : 169 - 179
  • [49] Evaluating Non-adequate Test-Case Reduction
    Alipour, Mohammad Amin
    Shi, August
    Gopinath, Rahul
    Marinov, Darko
    Grocer, Alex
    [J]. 2016 31ST IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE), 2016, : 16 - 26
  • [50] LINEAR COMBINATION OF HYBRID ORBITALS - CYCLOBUTANE AS TEST-CASE
    MEYER, AY
    PASTERNAK, R
    [J]. THEORETICA CHIMICA ACTA, 1974, 33 (03): : 215 - 226