🧠

Testing

  • Make sure our programs produce the expected results
  • Test plan
    • Document specifying how program is to be tested
  • Code coverage testing
    • Clear box testing
    • Testing based on covering all statements in the code
    • Make sure no lines of code are untested
  • Data coverage testing
    • Black box testing
    • Testing based on possible input values
    • Treat code as a black box, ignore the lines of code

Computer Science Programming