tomas-stefano / infinity_test

Continuous testing and a alternative to Autotest and Guard
http://github.com/tomas-stefano/infinity_test
MIT License
217 stars 12 forks source link

Won't automatically re-run when I save a file #8

Closed mrrooijen closed 13 years ago

mrrooijen commented 13 years ago

Hi!

I love this tool, and when I first used it yesterday, I thought that whenever I saved a file, it'd run the tests again. I'm using it in a Ruby on Rails 3 application.

I assume it should be re-running the tests when I save a file, right? Cause I thought that's what it was doing yesterday but now it just simply doesn't do anything after I save.

Any idea's?

tomas-stefano commented 13 years ago

Humm ... Strange.

For notice, the InfinityTest don't do anything special for Rails apps (I don't test yet with Rails - only with gems). The next version I'll support Rails apps. Can you help me in that? =]

But even in Rails apps re-run tests successfully. The InfinityTest will look for this pattern:

Do you sure that you this pattern in your Rails apps? Obs.: The InfinityTest uses the watchr library to watch this patterns.

Thanks =]

mrrooijen commented 13 years ago

Hey! I just now again checked to see what the problem was.

I was trying to save models, controllers and such, expecting the specs to run. Just now i remember I never tried your gem out when saving models/controllers and such, just specs. And that works!

So yeah, I guess I just thought I already tested saving a model but I didn't.

Sure if I can find the time I can help you with the rails integration.

I guess basically (for starters) all you'd need to do is just (and I dont know how Watchr works) but basically just:

Like I said, no experience with Watchr but I assume that the above is possible? :)

mrrooijen commented 13 years ago

Love your gem by the way. And yeah, you're right, I read the other issue saying there is no "Rails sauce" yet, and by Rails sauce we of course mean the mvc spec integration. :) But great gem so far! I like it more than autotest!

If i have time I can take a look at the Rails integration. Quite busy lately but I'll definitely check it out if you haven't by then and see if I can help in any way!

tomas-stefano commented 13 years ago

Hi, Michael. Thanks for the acknolegments =D. I'm very busy too, but in this week I'll try to solve the issues and after that, I'll begin to add support for Rails apps. I'll close this issue and open another in http://github.com/tomas-stefano/infinity_test/issues/#issue/9

Thanks again =)