Never underestimate the effect a few tweaks to the ancient parts of your brain can have. As one anecdote, I was quite surprised how much of a difference was made in my motivation by coloring my passing/failing test cases green/red using ANSI escape sequences.