Keep it simple.
If you use TDD, you should follow "red, green, refactor":
- Write a failing test (red). (Often for functionality your code does not yet have.)
- Commit horrible coding crimes to get your tests to pass (green). Hardcode if necessary.
- Refactor, probably breaking tests for a short while, but overall improving the design.