Test as I go. After putting together a single event that has anything particularly unique in it that isn't just a text box or something, I test it and fix it up until it works.
I like to on occasion also play through an entire level/area to see how things mesh together/if there's any other bugs I may have missed and keep notepad open to keep track of what I need to fix and add.