| I work on a Rails app with a fair amount of test coverage with Cucumber. It takes around 30 to 40 minutes to run the entire test suite. While the tests are running, I usually check my email, HN news, Stackoverflow and Reddit. They don't seem like the best use of my time. Can you share some things you do that's productive? |
I try to write code so that stuff that needs to be tested is not tied to AR. Why should your logic need to wait for AR to fetch records and fire a callback when the part that is likely to break (that isn't covered by AR's test suite) is your logic, not the data fetching or callback infrastructure.