TDD practices


  • Characteristics of good tests 
  • What is and why TDD? 
  • TDD development cycle 
  • TDD best practices 
  • TDD anti-patterns 
  • Testable code best practices

Characters of Good Tests 

  • Run fast 
    • Short setup, run time, tear down 
  • Run in isolation 
    • Tests should not rely on data or state created/modified by other tests 
    • Tests should be able to be reordered 
  • Use data that makes them easy to read and understand 
  • Use real data whenever possible 
    • Use copies of production data if possible 
  • Repeatable 
    • Should return same result each time it runs

You must have an active subscription to download PDF and Lab Zip of this course topic.Please click the "Subscribe" button or the "Login" button if you already have an account.