A friend and I were trying to achieve that this summer via some various hacks, for a Java stack.
My friend ended up running the test script in a `while; sleep` loop, and made the script generate an ugly HTML page of the test result. He'd then setup Chrome to refresh every x secs.
What we were really wishing for is something like GoConvey - even thought about doing it ourselves when I explored the `fsnotify` package.
All that to say; this is really neat and I can't wait to integrate it in my workflow.
I applaud your efforts. Java could really benefit from browser-based test output, I think.
Until recently, GoConvey was using fsnotify to respond to file changes in the watched directories. We started seeing a lot of "Too many open files" errors, for one reason or another. While fsnotify is a good package, it did more than was needed. All we needed to know is if something changed.
We were able to drop that dependency by simply walking the watched directories and checksumming them as we go by adding up file names and their modification dates. If the checksum is different, GoConvey re-runs tests.
So my understanding is that you should be able to watch 10240 many individual directories. I believe that should be enough to cover any Go project, wouldn't it? What lead to that message?
EDIT 2 : So I see you walk the directories every 250ms per default.
I'll have to double-check with mdwhatcott about the exact details of the open files problem, but I believe it had to do with "ulimit".
Yes, directories are walked continuously, with 250ms between each scan. So far this has worked pretty well (maybe on slower systems it should be slowed down). Over time I hope we'll get performance tweaked to an optimum.
My friend ended up running the test script in a `while; sleep` loop, and made the script generate an ugly HTML page of the test result. He'd then setup Chrome to refresh every x secs.
What we were really wishing for is something like GoConvey - even thought about doing it ourselves when I explored the `fsnotify` package.
All that to say; this is really neat and I can't wait to integrate it in my workflow.