blob: 33d321fedafb0be3f02d5087235b9f9167f3162f [file] [log] [blame]
Masayuki Igawac268dd62013-09-18 00:51:05 +09001Tempest Field Guide to Unit tests
2=================================
Matthew Treinish32d35702013-08-13 11:59:06 -04003
4What are these tests?
5---------------------
6
7Unit tests are the self checks for Tempest. They provide functional
8verification and regression checking for the internal components of tempest.
9They should be used to just verify that the individual pieces of tempest are
10working as expected. They should not require an external service to be running
11and should be able to run solely from the tempest tree.
12
13Why are these tests in tempest?
14-------------------------------
15These tests exist to make sure that the mechanisms that we use inside of
16tempest to are valid and remain functional. They are only here for self
17validation of tempest.
18
19
20Scope of these tests
21--------------------
22Unit tests should not require an external service to be running or any extra
23configuration to run. Any state that is required for a test should either be
24mocked out or created in a temporary test directory. (see test_wrappers.py for
25an example of using a temporary test directory)