Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 535 Bytes

unit-testing.md

File metadata and controls

17 lines (10 loc) · 535 Bytes

Unit Testing Interview Questions

What are the key benefits of extensive unit testing?

Refactoring can be performed.

Functions as a good documentation for somebody wanting to understand functionality.

Helps think about edge cases and what is needed from unit under test.

Ensures correctness of the unit under test.

What makes a good unit test?

It is short and tests one aspect.

When it fails it is quick to understand and obvious why it happened.

Test strictly something that is the responsibility of the unit under test.