Investigating the Prioritization of Unit Testing Effort using Software Metrics

Fadel Toure, Mourad Badri, Luc Lamontagne

2017

Abstract

In object-oriented software, unit testing is a level of software testing where each individual class is tested by a dedicated unit test class. Unfortunately, due to time and resources constraints, this phase does not cover all classes. The testing efforts are often focused on particular classes. In this paper, we investigate an approach based on software information history to support the prioritization of classes to be tested. To achieve this goal, we first analyzed different attributes of ten open-source Java software systems for which JUnit test cases have been developed for several classes. We used the mean and the logistic regression analysis to characterize the classes for which JUnit test classes have been developed by testers. Second, we used two classifiers trained on metrics values and unit tests information collected from the selected systems. The classifiers provide, for each software, a set of classes on which unit testing efforts have to be focused. The obtained sets have been compared to the sets of classes for which JUnit test classes have been developed by testers. Results show that: (1) the metrics average values of tested classes are significantly different from the metrics average values of other classes, (2) there is a significant relationship between the fact that a JUnit test class has been developed for a class and its attributes, and (3) the sets of classes suggested by classifiers reflect the testers’ selection properly.

Download


Paper Citation


in Harvard Style

Toure F., Badri M. and Lamontagne L. (2017). Investigating the Prioritization of Unit Testing Effort using Software Metrics . In Proceedings of the 12th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE, ISBN 978-989-758-250-9, pages 69-80. DOI: 10.5220/0006319300690080

in Bibtex Style

@conference{enase17,
author={Fadel Toure and Mourad Badri and Luc Lamontagne},
title={Investigating the Prioritization of Unit Testing Effort using Software Metrics},
booktitle={Proceedings of the 12th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE,},
year={2017},
pages={69-80},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0006319300690080},
isbn={978-989-758-250-9},
}


in EndNote Style

TY - CONF
JO - Proceedings of the 12th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE,
TI - Investigating the Prioritization of Unit Testing Effort using Software Metrics
SN - 978-989-758-250-9
AU - Toure F.
AU - Badri M.
AU - Lamontagne L.
PY - 2017
SP - 69
EP - 80
DO - 10.5220/0006319300690080