Skip to main content Link Menu Expand (external link) Document Search Copy Copied
Last updated: Apr 05, 23 09:42 UTC | Permalink

Test-Driven Development

This activity is intended to supplement the CS4530 lecture on test-driven development.

Steps

  1. Download and unpack the starter Code
  2. Write down the testable behaviors for the satisfaction condition: “Add a new grade for an existing student”
  3. Identify at least two exceptional conditions or design decisions associated with these testable behaviors
  4. Write Jest tests for your testable behaviors
  5. Implement a method addGrade that passes your tests.

When you are done, submit your work as required by your instructor. This may vary from section to section.


© 2023 Adeel Bhutta, Jan Vitek and Mitch Wand. Released under the CC BY-SA license