Measuring class cohesion using mutant methods

  • Authors:
  • Sim-Hui Tee

  • Affiliations:
  • Multimedia University, Cyberjaya, Malaysia

  • Venue:
  • ACM SIGSOFT Software Engineering Notes
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

Class cohesion is a measure of software quality and maintainability. A highly cohesive class implies that its modules are functionally coherent and integrated. To date, there are varying cohesion metrics that measure class cohesion from different perspectives. These metrics use different computation in the evaluation of class cohesion. Novice software developers have no access to the class cohesion of a particular class if they are not familiar with these metrics. In this paper, we provide a quick technique to measure class cohesion without using complicated calculation. We delimit our technique to measure class cohesion in term of attribute sharing and method invocation. We contend that the observation of the impact of mutant methods provides a quick judgement on the cohesion status. The proposed approach enables novice software developers to quickly evaluate the cohesion status of a class