The Relationship between Test Suite Size and Defect Detection in Student Projects

Authors

  • Thijn Groen Department of Computer Science, University of Central Florida, Orlando, FL, USA. Author
  • Jasmani Irawan Department of Computer Science, University of New Hampshire, Durham, NH, USA. Author
  • Ansgar Oderwald Department of Computer Science, University of Houston, Houston, TX, USA. Author
  • Ildiko Fiebig Department of Computer Science, Colorado State University, Fort Collins, CO, USA. Author

Keywords:

software testing; test suite size; defect detection; student projects; mutation analysis; empirical software engineering

Abstract

Student software projects are often evaluated partly through test suites, and instructors and students may treat the number of test cases as a convenient indicator of quality. This article examines the relationship between test suite size and defect detection in student projects through a methodological and analytical framework rather than an empirical dataset. The central problem is that size is a count of test cases, whereas defect detection is a conditional event requiring a triggering input and an adequate oracle; larger suites can therefore be redundant, weakly asserted, or poorly aligned with the defect population. The paper contributes an explicit measurement model that decomposes detection into input sensitivity and oracle strength, a suite-level detection model with an effective-size parameter for redundancy, and an adjusted regression specification that separates size from coverage, oracle quality, and project heterogeneity. It also develops a precision and sample-size logic for project-based studies and identifies boundary conditions for interpreting size effects, including defect sparsity, mutation-score fallibility, non-random test selection, and the hierarchical structure of student work. The analysis implies that raw test counts should not be used as a stand-alone quality metric. In student projects, size effects are likely to be nonlinear and conditional: they can reflect residual diversity beyond coverage, but they can also be artifacts of oracle strength, project scale, and repeated test templates. A defensible study must report coverage, detection operationalization, suite redundancy, and the unit of analysis, and it should estimate size effects with adjustment and uncertainty rather than relying on correlation alone. These conclusions have direct implications for grading, test-process instruction, and empirical software engineering education.

References

1. Myers, G. J., Sandler, C., & Badgett, T. (2011). The art of software testing (3rd ed.). Wiley.

2. Zhu, H., Hall, P. A. V., & May, J. H. R. (1997). Software unit test coverage and adequacy. ACM Computing Surveys, 29(4), 366–427.

3. Weyuker, E. J. (1988). The evaluation of program-based software test data adequacy criteria. Communications of the ACM, 31(6), 668–675.

4. Inozemtseva, L., & Holmes, R. (2014). Coverage is better than test suite size for assessing test suite effectiveness. In Proceedings of the 36th International Conference on Software Engineering (pp. 96–107). ACM.

5. Andrews, J. H., Briand, L. C., Labiche, Y., & Namin, A. S. (2006). Using mutation analysis for assessing and comparing testing coverage criteria. IEEE Transactions on Software Engineering, 32(8), 608–624.

6. Just, R., Jalali, D., Inozemtseva, L., Ernst, M. D., Holmes, R., & Fraser, G. (2014). Are mutants a valid substitute for real faults in software testing? In Proceedings of the 22nd ACM SIGSOFT International Symposium on Foundations of Software Engineering (pp. 654–665). ACM.

7. Hutchins, M., Foster, J. S., Goradia, T., & Ostrand, T. (1994). Experiments on the effectiveness of dataflow- and controlflow-based test adequacy criteria. In Proceedings of the 16th International Conference on Software Engineering (pp. 191–200). IEEE.

8. Elbaum, S., Malishevsky, A. G., & Rothermel, G. (2002). Test case prioritization: A family of empirical studies. IEEE Transactions on Software Engineering, 28(2), 159–182.

9. Rothermel, G., Harrold, M. J., Ostrin, J., & Hong, C. (1998). An empirical study of the effects of minimization on the fault detection capabilities of test suites. In Proceedings of the International Conference on Software Maintenance (pp. 34–43). IEEE.

10. Fraser, G., & Arcuri, A. (2011). EvoSuite: Automatic test suite generation for object-oriented software. In Proceedings of the 19th ACM SIGSOFT Symposium and the 13th European Conference on Foundations of Software Engineering (pp. 416–419). ACM.

11. Wohlin, C., Runeson, P., Höst, M., Ohlsson, M. C., Regnell, B., & Wesslén, A. (2012). Experimentation in software engineering. Springer.

12. Kitchenham, B. A., Pfleeger, S. L., Pickard, L. M., Jones, P. W., Hoaglin, D. C., El Emam, K., & Rosenberg, J. (2002). Preliminary guidelines for empirical research in software engineering. IEEE Transactions on Software Engineering, 28(8), 721–734.

13. Höst, M., Regnell, B., & Wohlin, C. (2000). Using students as subjects—A comparative study of students and professionals in lead-time impact assessment. Empirical Software Engineering, 5(3), 201–214.

14. Carver, J., Jaccheri, L., Morasca, S., & Shull, F. (2003). Issues in using students in empirical studies in software engineering education. In Proceedings of the 9th International Software Metrics Symposium (pp. 239–249). IEEE.

15. Sjøberg, D. I. K., Hannay, J. E., Hansen, O., Kampenes, V. B., Karahasanovic, A., Liborg, N.-K., & Rekdal, A. C. (2005). A survey of controlled experiments in software engineering. IEEE Transactions on Software Engineering, 31(9), 733–753.

16. Cohen, J. (1988). Statistical power analysis for the behavioral sciences (2nd ed.). Lawrence Erlbaum.

17. Runeson, P., & Höst, M. (2009). Guidelines for conducting and reporting case study research in software engineering. Empirical Software Engineering, 14(2), 131–164.

18. Shull, F., Singer, J., & Sjøberg, D. I. K. (Eds.). (2008). Guide to advanced empirical software engineering. Springer.

19. Kaner, C., Falk, J., & Nguyen, Q. (1999). Testing computer software (2nd ed.). Wiley.

20. Beizer, B. (1990). Software testing techniques (2nd ed.). Van Nostrand Reinhold.

Downloads

Published

2023-08-11