Testing

Tips from The Practice of Programming by Kerninghan and Pike

  • Test code at it’s boundaries
  • Test pre and post conditions
  • Use assertions
  • Program defensively
  • Check error returns
  • Test incrementally
  • Test simple parts first
  • Know what output to expect
  • Verify conservation properties
  • Compare independent implementations
  • Measure test coverage
  • Automate regression testing
  • Create a self contained tests
Advertisements

0 Responses to “Testing”



  1. 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




Pages

Thru Lens



More Photos

Tweets

View Karthikeyan S's profile on LinkedIn
Alltop, confirmation that we kick ass

%d bloggers like this: