Unit tests are failing #16

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

2 participants

@oveddan

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
Owner

I don't see tests are failing.

@oveddan

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

@arunoda
Owner

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

@oveddan

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
Owner

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

@realistschuckle realistschuckle referenced this issue in realistschuckle/nodemock Jan 29, 2014
Open

Unit tests are failing #3

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