Tests should be DAMP

Topics: Testing

DAMP tests use descriptive, meaningful phrases so each test communicates its scenario and intent; that readability can complement DRY by avoiding needless repetition.

DRY (Don’t repeat yourself) increases the maintainability of code by isolating change to a minimum of code that needs to change.

DAMP (Descriptive and Meaningful Phrases) increases maintainability by making code easier to read and understand.

Therefore, tests should be both DRY and DAMP.

Topic: Testing