Home > Test > TestDouble


Today I came across a word named TestDouble – I was wondering what it was! I had no idea – obviously I knew it had something to do with Unit Tests or Fitnesse Tests!

Test Double is a generic term for any case where you replace a production object for testing purposes

There are different types of TestDoubles :

1. Dummy Object

2. Test Stub

3. Test Spy

4. Mock Object

5. Fake Object

One of the common case, where we use TestDouble is when we need communication with external services.

More information here!

Categories: Test Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: