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

Unit tests are failing #16

Open
oveddan opened this issue Mar 8, 2012 · 5 comments
Open

Unit tests are failing #16

oveddan opened this issue Mar 8, 2012 · 5 comments

Comments

@oveddan
Copy link

oveddan commented Mar 8, 2012

Following test methods are failing:

✔ testMultipleEntriesForOneMethod
method call for: 'foo()' with params: (10, 30) was not executed!

✔ testAssertFailsSameMethod
method call for: 'bar()' with params: (10, 30) was not executed!

✔ testAssertOK
method call for: 'bar()' with params: (10, 30) was not executed!

✔ testAssertThrowsOK
method call for: 'bar()' with params: (10) was not executed!

@arunoda
Copy link
Owner

arunoda commented Apr 7, 2012

I don't see tests are failing.

@oveddan
Copy link
Author

oveddan commented Apr 7, 2012

You don't see it locally or you don't see it in the example posted message?

@arunoda
Copy link
Owner

arunoda commented Apr 7, 2012

Actually these logs are showing what is happens on the behind.
This the test itself get passed :)
Can't you see this ✔

@oveddan
Copy link
Author

oveddan commented Apr 7, 2012

Yes but the check is misleading. A mocked condition in the test was never invoked, so you get the error message. In the unit test you should be invoking every set-up mock. The tests themselves are incorrect and masking the error; they should be failing.

@arunoda
Copy link
Owner

arunoda commented Apr 7, 2012

Ok! Now I got it. You give it a fix.
Thanks.
Pull this request too.

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

No branches or pull requests

2 participants