October 2015
·
415 Reads
·
3 Citations
Many software systems contain large number of classes which make software testing very difficult. As software systems evolve, test suites become very large. It is usually very expensive to execute the entire test suites. Therefore, focusing the testing on the more error-prone classes helps in reducing the testing cost. In this work, we propose an approach for test case selection using software metrics. We examine the ability of several complexity and volume metrics to find the most complex and error-prone classes. Testers can then run test cases that are associated with the complex classes only. We focus our experiments on systems written in Java and tested with the JUnit testing framework. The results reveal that the proposed approach significantly reduce the number of test cases needed while detecting most of seeded errors.