Quantcast
Channel: What's the difference between a mock & stub? - Stack Overflow
Browsing all 43 articles
Browse latest View live

Answer by Arnis Lapsa for What's the difference between a mock & stub?

A stub is a simple fake object. It just makes sure test runs smoothly.A mock is a smarter stub. You verify your test passes through it.

View Article


Answer by NebulaFox for What's the difference between a mock & stub?

A Mock is just testing behaviour, making sure certain methods are called.A Stub is a testable version (per se) of a particular object.What do you mean an Apple way?

View Article


What's the difference between a mock & stub?

I've read various articles about mocking vs stubbing in testing, including Martin Fowler's Mocks Aren't Stubs, but still don't understand the difference.

View Article
Browsing all 43 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>