It doesn't handle watching new files in an elegant fashion.
Ideally we want to add a watcher to each folder, detect new files added and then add any new files to the watcher
This is made harder because of glob support. We might have to either side step glob support in some way, or to dive into the glob code.
I personally think the optimum solution is to allow watching on files, folders & globs.
Then for folders we special case it as a recursive watcher on the folder and any sub folders / files including the new file detection.
This allows me to use either test/**/*.js or test
@Raynos resolved this with a new file watcher I wrote https://github.com/airportyh/fireworm. Please try it out - create new test files and it should automatically pick them up too.
Maybe it's just me, but after downloading testem and doing the hello world example it still does not handle new files, only the ones that had been already created before launching the framework (I'm on Windows 7, using testem 0.2.50 and node 0.8.6).
This is not working yet because I had to back out the change to use the new file watcher, which is why it was reopened. Sorry for the confusion.
I see, no problem and thank you for the answer.
The fact that this still doesn't work really kills my work flow.
This is done! 3458c5f Hope it stays done :)
yes! thanks :)
Also checkout https://github.com/airportyh/watchem if you want something smaller/simpler.