Hacker News new | ask | show | jobs
by biznickman 2928 days ago
So VCR gem for javascript. Great! Personally I stopped using VCR gem a while back as it blocks edge cases. However for larger projects where things can get unwieldily this makes a lot of sense. Local test suites should never hit external APIs so it's much better to have mocks/stubs than to have no tests at all.

However on smaller projects I've found that just clicking through to make sure things work and then letting my error reporting system catch bugs to be much more effective :)

It's a hard line to walk and I surely haven't perfected it. I'll give it a shot on a future project!