Are you for one or the other? Or both?
My understanding is unit tests:
As a summary of all the above,