Corpus ID: 14613680

Towards a Unified Metrics Suite for JUnit Test Cases

  title={Towards a Unified Metrics Suite for JUnit Test Cases},
  author={Fadel Tour{\'e} and Mourad Badri and Luc Lamontagne},
This paper aims at proposing a unified metrics suite that can be used to quantify different perspectives related to the code of JUnit test cases. We extended existing JUnit test case metrics by introducing two new metrics. We analyzed the code of JUnit test cases of two open source Java software systems (ANT and JFREECHART). We used in total five metrics. We used the Principal Component Analysis (PCA) method in order: (1) to better understand the underlying orthogonal dimensions captured by the… Expand
Measuring Software Testability Modulo Test Quality
This paper presents the results of a set of experiments on a dataset of 9,861 Java classes, belonging to 1,186 open source projects, and confirms that normalizing the test effort with respect to the test quality largely improves the correlation between class metrics and thetest effort. Expand
Predicting different levels of the unit testing effort of classes using source code metrics: a multiple case study on open-source software
This paper investigates empirically the ability of a Quality Assurance Indicator (Qi), a synthetic metric that was proposed in a previous work, to predict different levels of the unit testing effort of classes in object-oriented software systems. Expand
Predicting Unit Testing Effort Levels of Classes: An Exploratory Study based on Multinomial Logistic Regression Modeling
Results suggest that the MLR model based on the Qi metric is able to accurately predict different levels of the unit testing effort of classes. Expand
Measuring the effect of clone refactoring on the size of unit test cases in object-oriented software: an empirical study
The results revealed that there is a strong and positive correlation between code clone refactoring and reduction in the size of unit test cases and how code quality attributes that are related to testability of classes are significantly improved when clones are refactored. Expand
A Systematic Review of Software Testability Measurement Techniques
  • Rashmi Sharma, A. Saha
  • Computer Science
  • 2018 International Conference on Computing, Power and Communication Technologies (GUCON)
  • 2018
Results indicate that controllability and observability concept is widely explored for the measurement of software testability, and most of the work is based on object-oriented paradigm at the code level. Expand


Empirical Analysis of Object-Oriented Design Metrics for Predicting Unit Testing Effort of Classes
The results indicate that: 1) complexity, size, cohesion and (to some extent) coupling were found significant predictors of the unit testing effort of classes and 2) multivariate regression models based on object-oriented design metrics are able to accurately predict the unitTesting effort ofclasses. Expand
Predicting class testability using object-oriented metrics
The goal of this work is to define and evaluate a set of metrics that can be used to assess the testability of the classes of a Java system. Expand
Empirical Study of Object-Oriented Metrics
This paper investigates 22 metrics proposed by various researchers and describes how they are applied on standard projects on the basis of which descriptive statistics, principal component analysis and correlation analysis is presented. Expand
An Empirical Analysis of Lack of Cohesion Metrics for Predicting Testability of Classes
The aim of this work is to explore empirically the relationship between lack of cohesion metrics and testability of classes in object-oriented systems. We addressed testability from the perspectiveExpand
SCOTCH: Test-to-code traceability using slicing and conceptual coupling
A novel automated solution to this problem, based on dynamic slicing and conceptual coupling, is presented, and the resulting tool, SCOTCH, identifies traceability links between unit test classes and tested classes with a high accuracy and greater stability than existing techniques. Expand
An empirical study into class testability
The goal of this paper is to identify and evaluate a set of metrics that can be used to assess the testability of the classes of a Java system. Expand
Establishing Traceability Links between Unit Test Cases and Units under Test
  • B. Rompaey, S. Demeyer
  • Computer Science
  • 2009 13th European Conference on Software Maintenance and Reengineering
  • 2009
Six traceability resolution strategies involving test naming and design conventions, static call graphs, call behavior before asserts, lexical analysis and version log mining are evaluated to make the relation between developer test cases and units under test explicit. Expand
Exploring Empirically the Relationship between Lack of Cohesion and Testability in Object-Oriented Systems
Evidence that (lack of) cohesion may be associated with (low) testability is provided by an empirical study using two Java software systems for which JUnit test cases exist. Expand
Test coverage and post-verification defects: A multiple case study
It is found that in both projects the increase in test coverage is associated with decrease in field reported problems when adjusted for the number of prerelease changes, which suggests that for most projects the optimal levels of coverage are likely to be well short of 100%. Expand
An in-depth investigation into the relationships between structural metrics and unit testability in object-oriented systems
This paper employs multiple linear regression (MLR) and partial least square regression (PLSR) to investigate the relationships between the metrics measuring structural properties and unit testability of a class, showing that most structural metrics are statistically related tounit testability in an expected direction. Expand