Saved in:
Bibliographic Details
Main Authors: Mendonça, Willian D. F., Assunção, Wesley K. G., Vergilio, Silvia R.
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2406.15296
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910497735966720
author Mendonça, Willian D. F.
Assunção, Wesley K. G.
Vergilio, Silvia R.
author_facet Mendonça, Willian D. F.
Assunção, Wesley K. G.
Vergilio, Silvia R.
contents Testing Highly Configurable Systems (HCSs) is a challenging task, especially in an evolution scenario where features are added, changed, or removed, which hampers test case selection and prioritization. Existing work is usually based on the variability model, which is not always available or updated. Yet, the few existing approaches rely on links between test cases and changed files (or lines of code), not considering how features are implemented, usually spread over several and unchanged files. To overcome these limitations, we introduce FeaTestSelPrio, a feature-oriented test case selection and prioritization approach for HCSs. The approach links test cases to feature implementations, using HCS pre-processor directives, to select test cases based on features affected by changes in each commit. After, the test cases are prioritized according to the number of features they cover. Our approach selects a greater number of tests and takes longer to execute than a changed-file-oriented approach, used as baseline, but FeaTestSelPrio performs better regarding detected failures. By adding the approach execution time to the execution time of the selected test cases, we reached a reduction of $\approx$50%, in comparison with retest-all. The prioritization step allows reducing the average test budget in 86% of the failed commits.
format Preprint
id arxiv_https___arxiv_org_abs_2406_15296
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Feature-oriented Test Case Selection and Prioritization During the Evolution of Highly-Configurable Systems
Mendonça, Willian D. F.
Assunção, Wesley K. G.
Vergilio, Silvia R.
Software Engineering
Testing Highly Configurable Systems (HCSs) is a challenging task, especially in an evolution scenario where features are added, changed, or removed, which hampers test case selection and prioritization. Existing work is usually based on the variability model, which is not always available or updated. Yet, the few existing approaches rely on links between test cases and changed files (or lines of code), not considering how features are implemented, usually spread over several and unchanged files. To overcome these limitations, we introduce FeaTestSelPrio, a feature-oriented test case selection and prioritization approach for HCSs. The approach links test cases to feature implementations, using HCS pre-processor directives, to select test cases based on features affected by changes in each commit. After, the test cases are prioritized according to the number of features they cover. Our approach selects a greater number of tests and takes longer to execute than a changed-file-oriented approach, used as baseline, but FeaTestSelPrio performs better regarding detected failures. By adding the approach execution time to the execution time of the selected test cases, we reached a reduction of $\approx$50%, in comparison with retest-all. The prioritization step allows reducing the average test budget in 86% of the failed commits.
title Feature-oriented Test Case Selection and Prioritization During the Evolution of Highly-Configurable Systems
topic Software Engineering
url https://arxiv.org/abs/2406.15296