Unit Test peer review starter checklist

Modify, update, add, edit as seems appropriate

Transition Coverage

  1. Correct state is entered at initialization of the state machine
  2. Exercises each arc in the statechart at least once. (As a natural consequence this enters each state at least once for a well-formed statechart.)
  3. Checks that correct state is entered after each arc being tested. (Does not have to re-check for arcs that have previously been tested and checked.)
  4. Checks that correct output values are sent while in each state.
  5. Optional: checks that irrelevant values do not cause a state transition.

Data Coverage & Branch Coverage

  1. MC/DC coverage on guard conditions for arcs
  2. Test that irrelevant inputs do not cause arc transitions.
  3. Defaults in switch statements tested via an "INVALID" enum value or similar.
  4. Identify any code in the implementation not reached by 100% transition coverage:

Last update 10/3/2020