Analysing the Relations Between Software Evolution and Fault Proneness. Jaafar, F. Ph.D. Thesis, Universit� de Montr�al, December, 2013. 132 pages.
Analysing the Relations Between Software Evolution and Fault Proneness [pdf]Paper  abstract   bibtex   
Program maintenance accounts for the largest part of the costs of any program. During maintenance activities, developers implement changes (sometimes simultaneously) on artefacts to fix bugs and to implement new requirements. Thus, developers need knowledge to identify hidden dependencies among programs artefacts and to detect correlated part of source code. Indeed, as programs evolved, their designs become more complex over time and harder to change. In the absence of the necessary knowledge on artefacts dependencies, developers could introduce design defects and faults which causes development and maintenance costs to rise. Therefore, developers must understand the dependencies among program artefacts and take proactive steps that facilitate future changes and minimize fault proneness. On the one hand, maintaining a program without understanding the different dependencies between their artefacts may lead to the introduction of faults. On the other hand, when developers lack knowledge about the impact of their maintenance activities, they may introduce design defects, which have a negative impact on the evolution of program. Thus, developers need mechanisms to understand how a change to an artefact will impact the rest of the programs artefacts and tools to detect design defects dependencies impact. In this thesis, we propose three principal contributions. The \emphfirst contribution is two novel change patterns to model new co-change and change propagation scenarios. We introduce the Asynchrony change pattern, corresponding to macro co-changes, \emphi.e., of files that co-change within a large time interval (change periods), and the Dephase change pattern, corresponding to dephase macro co-changes, \emphi.e., macro co-changes that always happen with the same shifts in time. We present our approach, named Macocha, and we show that such new change patterns provide interesting information to developers. The \emphsecond contribution is proposing a novel approach to analyse the evolution of different classes in object-oriented programs and to link different evolution behavior to faults. In particular, we define class-profile model to study the evolution and the co-evolution dependencies among classes and to relate such dependencies with fault-proneness. The \emphthird contribution concerns design defect dependencies impact. We propose a study to mine the link between design defect dependencies, such as co-change dependencies and static relationships, and fault proneness. We that the negative impact of design defects propagate through their dependencies. The three contributions are evaluated on open-source programs and the obtained results enable us to draw the following conclusions: \beginitemize \item The new change patterns, Asynchrony and Dephase change patterns, provide developers useful insights regarding hidden co-change dependencies and improve precision and recall of co-change analysis. \item Two major kinds of class evolution dependencies, \emphi.e., class lifetime and class co-evolution, inform us about fault-proneness. Indeed, Persistent classes are significantly less fault-prone than other classes and faults fixed by maintaining co-evolved classes are significantly more frequent than faults fixed using not co-evolved classes. \item Dependencies with anti-patterns have a negative impact on fault-proneness. We show that classes having static relationships with anti-patterns or co-changing with anti-patterns are significantly more fault-prone than other classes. \enditemize

Downloads: 0