Testing (Programming)

Guidelines

  • Name tests in a way that non-programmers would also understand
  • Avoid words like “correctly” or “right”, instead describe what you want to do
  • Write as many test you can think of to “break” the code.l

Parts

  1. Arrange: set up variables
  2. Act: do the thing
  3. Assert: add testing