Unit Testing

Testing Software From Developers' Point-of-View

Ufuk Uzun, October 2016

Unit Tests...

  • verify the functionality of a specific section of code

  • written by developers
  • white-box style testing

  • usually at the method level

  • in OOP, usually at the class level

  • automated tests as documentation

Unit Tests...

  • find problems early

  • easier refactoring

Code Coverage

is a measure used to describe the degree to which the source code of a program is executed when a particular test suite runs.

 

Metrics:

  • Line coverage
  • Method coverage
  • Class coverage

Continuous Integration

In XP, CI was intended to be used in combination with automated unit tests written through the practices of test-driven development.

Unit Testing - Testing Software From Developers' Point-of-View

By Ufuk Uzun

Unit Testing - Testing Software From Developers' Point-of-View

  • 458
Loading comments...

More from Ufuk Uzun