[From "Rapid Development" by Steve McConnell]
One of the "Best Practices" from the above reference is "The Daily Build and Smoke Test".
This is "a process in which a software product is completely built every day and then put through a series of tests to verify its basic operations."
Do this right from the start of development, not just during the final stages.