Abstract
Software testing is one of the very important Quality Assurance (QA) components. A lot of researchers deal with the testing process in terms of tester motivation and how tests should or should not be written. However, it is not known from the recommendations how the tests are written in real projects. In this paper, the following was investigated: (i) the denotation of the word ``test'' in different natural languages; (ii) whether the number of occurrences of the word ``test'' correlates with the number of test cases; and (iii) what testing frameworks are mostly used. The analysis was performed on 38 GitHub open source repositories thoroughly selected from the set of 4.3 M GitHub projects. We analyzed 20 340 test cases in 803 classes manually and 170 k classes using an automated approach. The results show that: (i) there exists a weak correlation (r = 0.655) between the number of occurrences of the word ``test'' and the number of test cases in a class; (ii) the proposed algorithm using static file analysis correctly detected 97
Keywords
MSC
68-04
Cite this article
@article{cai-5408,
author = {Matej Madeja and Jaroslav Porubän and Michaela Bačíková and Matúš Sulír and Ján Juhár and Sergej Chodarev and Filip Gurbáľ},
title = {Automating Test Case Identification in Java Open Source Projects on GitHub},
journal = {Computing and Informatics},
volume = {40},
number = {3},
pages = {575--605},
year = {2021},
issn = {1335-9150},
doi = {10.31577/cai_2021_3_575}
}
TY - JOUR AU - Matej Madeja AU - Jaroslav Porubän AU - Michaela Bačíková AU - Matúš Sulír AU - Ján Juhár AU - Sergej Chodarev AU - Filip Gurbáľ TI - Automating Test Case Identification in Java Open Source Projects on GitHub JO - Computing and Informatics VL - 40 IS - 3 SP - 575 EP - 605 PY - 2021 SN - 1335-9150 DO - 10.31577/cai_2021_3_575 UR - https://doi.org/10.31577/cai_2021_3_575 KW - Program comprehension KW - Java testing KW - testing practices KW - test smells KW - open-source projects KW - GitHub ER -
Madeja, M., Porubän, J., Bačíková, M., Sulír, M., Juhár, J., Chodarev, S., & Gurbáľ, F. (2021). Automating Test Case Identification in Java Open Source Projects on GitHub. Computing and Informatics, 40(3), 575–605. https://doi.org/10.31577/cai_2021_3_575