Unit Test Examples

Registered by Vish Ishaya

We need good documentation and examples for creating unit tests. This will allow us to make sure that the unit tests remain consistent throughout the code base.

As a minimum, we should have:
example very basic unit test
example use of stubs
example use of mox
documentation on what should go into a unit test vs functional test

When complete, this can go in our tests directory as test_example.py

Blueprint information

Status:
Complete
Approver:
Vish Ishaya
Priority:
High
Drafter:
Vish Ishaya
Direction:
Approved
Assignee:
Titan
Definition:
Approved
Series goal:
Accepted for diablo
Implementation:
Implemented
Milestone target:
milestone icon 2011.3
Started by
Thierry Carrez
Completed by
Thierry Carrez

Related branches

Sprints

Whiteboard

First appeared in diablo-2

Wiki Pages at:
http://wiki.openstack.org/SmallTestingGuide
http://wiki.openstack.org/TestGuide

I created a etherpad page.
http://etherpad.openstack.org/diablo-testing
Would you discuss about this blueprint here?

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.