top | item 21703995

(no title)

acidictadpole | 6 years ago

If you know there'll only be one concrete implementation, then yeah don't bother.

What people sometimes forget though is that any implementations of this in your tests are also concrete.

Some things like a DB accessor, will use a mocked/lite implementation in testing for code that doesn't need access to the db (but still needs to be provided data) to test it's functionality.

discuss

order

No comments yet.