What is Test-driven Development?
Test-driven development (also called test-first coding) is a development technique where one writes unit tests and new code features in alternation. For each small feature or addition to be made, the programmer first writes a corresponding set of unit tests that express the expectations and intent for the feature’s behavior, and then writes new code. The tests are used to check that the code meets the expressed expectations. Ideally, one constantly bounces back and forth between writing a test or two, and writing a few more lines of code. See the TestDrivenDevelopment page for more information and references. The Web-CAT Grader allows a student to submit his or her test cases along with the solution, and grades on test validity and test completeness as well as code correctness.