Depends on the testing you need to do.
Functional code testing without the user interface can be done with Unit Testing. This allows you to create automatic tests which you can run before each...