< Terug naar vorige pagina

Publicatie

Can we increase the test-coverage in libraries using dependent projects' test-suites?

Boekbijdrage - Boekabstract Conferentiebijdrage

Modern software systems increasingly depend on packages released on code sharing platforms such as GitHub, Bitbucket, and GitLab. To minimize the risk of lurking defects in such packages, strong test suites covering the normal as well as the exceptional paths are needed. In this paper we explore the potential of using tests from dependent projects to increase the code coverage of base packages. We extracted 4 popular Python packages from GitHub together with 14 dependent projects and analyzed the code coverage of the available tests. We observed that adopting the tests of the dependent projects in the test suite of the base library, would increase the line coverage in 9 out of 14 (64%) of the cases and the mutation coverage in all of them (100%). Our results suggest that a tool which would generate tests for the base package based on the tests in the dependent projects, would help to strengthen the test suite.
Boek: EASE 2022: The International Conference on Evaluation and Assessment in Software Engineering, 13-15 June, 2022, Gothenburg, Sweden
Pagina's: 294 - 298
ISBN:978-1-4503-9613-4
Jaar van publicatie:2022
Trefwoorden:P2 Proceeding
Toegankelijkheid:Closed