From Test::Simple to Test::Extreme - Get The Most Out of Your Tests 22

Habits for Effective Testing

  • Test before you code

    • Test before you fix a bug

      • write the test to demonstrate the bug

      • make sure the test fails

      • fix the bug

      • watch the test pass

    • Test before you add a feature

      • write the test to illustrate the feature

      • make sure the test fails

      • add the feature

      • pass your test

 

YAPC::CA << Previous | Index | Next >>
Copyright © 2003 Michael Graham