Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests executing twice #18

Open
kdiogenes opened this issue Jan 4, 2012 · 3 comments
Open

Tests executing twice #18

kdiogenes opened this issue Jan 4, 2012 · 3 comments

Comments

@kdiogenes
Copy link

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

@carlosbrando
Copy link
Owner

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

@kdiogenes
Copy link
Author

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
[email protected]
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:
#18 (comment)

@kdiogenes
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants