Implications of integrating test-driven development into CS1/CS2 curricula

  • Authors:
  • Chetan Desai;David S. Janzen;John Clements

  • Affiliations:
  • Intuit Inc., San Diego, CA, USA;California Polytechnic State University, San Luis Obispo, CA, USA;California Polytechnic State University, San Luis Obispo, CA, USA

  • Venue:
  • Proceedings of the 40th ACM technical symposium on Computer science education
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

Many academic and industry professionals have called for more testing in computer science curricula. Test-driven development (TDD) has been proposed as a solution to improve testing in academia. This paper demonstrates how TDD can be integrated into existing course materials without reducing topic coverage. Two controlled experiments were conducted in a CS1/CS2 course in Winter 2008. Following a test-driven learning approach, unit testing was introduced at the beginning of the course and reinforced through example. Results indicate that while student work loads may increase with the incorporation of TDD, students are able to successfully develop unit tests while learning to program.