carlosbrando / autotest-notification

This gem set the autotest to send messages to software as Growl, LibNotify, and Snarl, displaying a window with the results.
http://www.nomedojogo.com/
MIT License
183 stars 27 forks source link

Tests executing twice #18

Open kdiogenes opened 12 years ago

kdiogenes commented 12 years ago

When I have a test failure, after I alter the code and turn green the tests are executed twice.

carlosbrando commented 12 years ago

I don't have this issue here. Can you explain more and give me any examples?

kdiogenes commented 12 years ago

I don't know how to explain it better. But if I'm red and make code changes and go green, the tests execute twice. I have the following output:

/usr/bin/ruby -rrubygems -S /usr/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/bin/rspec --tty '/home/kadu/rails/f1/spec/controllers/corridas_controller_spec.rb' Running tests with args ["--color", "--tty", "/home/kadu/rails/f1/spec/controllers/corridas_controller_spec.rb"]... ...

Finished in 0.48462 seconds 3 examples, 0 failures Done.

/usr/bin/ruby -rrubygems -S /usr/lib/ruby/gems/1.9.1/gems/rspec-core-2.6.4/bin/rspec --tty '/home/kadu/rails/f1/spec/controllers/corridas_controller_spec.rb' Running tests with args ["--color", "--tty", "/home/kadu/rails/f1/spec/controllers/corridas_controller_spec.rb"]... ...

Finished in 0.44561 seconds 3 examples, 0 failures Done.

Em 4 de janeiro de 2012 10:22, Carlos Brando reply@reply.github.com escreveu:

I don't have this issue here. Can you explain more ang give me any examples?


Reply to this email directly or view it on GitHub: https://github.com/carlosbrando/autotest-notification/issues/18#issuecomment-3353836

kdiogenes commented 12 years ago

I think that I understand how it's working. When there is a failing test and you change your code, autotest will execute the tests for the controller that has changed and if all it's tests pass it will execute the entire test suite. Since I was testing a single controller I guess that the tests were being executed twice. This make sense?