skip to content
Computer Science for Education
User Tools
Log In
Site Tools
Search
Tools
Show pagesource
Old revisions
Backlinks
Recent Changes
Media Manager
Sitemap
Log In
>
Recent Changes
Media Manager
Sitemap
Trace:
•
week12
Sidebar
mt2011f:week12
Table of Contents
Week 12: Debugging and Unit Testing
Objectives
Readings for Class Discussion
Topics
Lab
Week 12: Debugging and Unit Testing
Objectives
Teach effective ways to find bugs in programs.
Motivate students to adequately test their programs.
Readings for Class Discussion
Christensen (2008).
Experiences with a Focus on Testing in Teaching
. BCK.
McCauley (2008).
Debugging: A Review of the Literature from an Educational Perspective
.
Optional:
Ahmadzadeh (2005). An Analysis of Patterns of Debugging Among Computer Science Students.
Murphy (2010). Pair Debugging: A Transactive Discourse Analysis.
Topics
Programming by testing first
Using a debugger (Java vs. C/C++)
Keys to debugging (from Horstmann, Chapter 6):
breakpoints
single-stepping
inspecting variables
Assertions and invariants
Unit testing
Code coverage and creating test cases
Lab
AP CS: Locate sections in Horstmann related to debugging and testing
JUnit testing in Eclipse (
http://www.eclipse.org
)
JSwat (
http://www.bluemarsh.com/java/jswat
)
mt2011f/week12.txt
· Last modified: 2011/11/21 11:24 (external edit)
Page Tools
Show pagesource
Old revisions
Backlinks
Back to top