Skip to content

Writing APIs for testable code

July 31, 2006

While reading a discussion over at Red-Gate Software about “relentlessly testing” code, there was mention about how all their products have an API and a light-bulb went off! For code to be testable, you have to write it as if it were an API.

This would help orientate your thinking to help make for a loosely-coupled design. Then your program logic could be called by testing frameworks, hooked up with user interface controls, etc.

Advertisements

From → Uncategorized

Leave a Comment

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: