Hacker News new | ask | show | jobs
by Gigablah 4523 days ago
Instead of looping continuously, it would be more efficient to run the tests only when file modification is detected.

Something like https://github.com/Maher4Ever/guard-phpunit

2 comments

Yeah, that's a really good point. I doubt it would fit in a tweet anymore, but it would be worth it. Thanks for the feedback and the link to Guard. I'll have to drop a link to that on the site.
Okay, I've updated the "app" and it now only runs the tests when code has been modified. I'm using fswatch and the entire thing still fits into a tweet :)