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

Run all tests if source -> test mapping can't be determined #12

Closed nanodeath closed 13 years ago

nanodeath commented 13 years ago

By the nature of the library I'm working on, the source library is fairly monolithic -- there's a single main source file. However, I was able to be more modular with my tests, so I have 5 or so different test files for my one source file. If I modify a test file, then just that file is re-run. But if I modify the source file, either no tests run, or I get "0 examples, 0 failures". I'd either like to be able to explicitly map a source file to test files (maybe tell the configuration that these test files should be run when this source file is changed) or simply run all tests whenever any source file changes.

tomas-stefano commented 13 years ago

Can you provide with your example or a similar example? With this example I can tested here and closed this issue more quick.

Thanks

nanodeath commented 13 years ago

Take a look at http://github.com/nanodeath/ReReplay/tree/5023bed542f3730d8170a99e4a6dc03ee0152e2d I would like all of spec/*_spec.rb to be run whenever lib/rereplay/ruby_runner.rb is changed.

tomas-stefano commented 13 years ago

I make a fork and I'll see that for you and I'll pull request and put the success results here too.

Thanks for the info

tomas-stefano commented 13 years ago

Now it works. The solution is in the master branch.

The following commits that garanteed that it works =]:

http://github.com/tomas-stefano/infinity_test/commit/e760c5067c52b66758ef2e2413bafd103d322cfc

And in your repo:

http://github.com/tomas-stefano/ReReplay/commit/146b5a0db323b0144109db48e7fb566b3b41cc4b

Cheers

nanodeath commented 13 years ago

Thanks, I'll give it a try tonight.