diff options
author | Cosimo Alfarano <cosimo.alfarano@collabora.co.uk> | 2011-01-10 18:33:09 +0000 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> | 2011-01-21 17:17:57 -0500 |
commit | 4045a4061d3a4d8ea5a5ae6ce72607ab4e9234ff (patch) | |
tree | 8c30f28800ec7eae3954cf801aeb16d1b199df2c /TESTING | |
parent | 7b0f697552829400077df776a2038fbccb0235ca (diff) | |
download | telepathy-logger-4045a4061d3a4d8ea5a5ae6ce72607ab4e9234ff.tar.gz |
add TESTING file, for instruction how to test modules (to be completed)
Diffstat (limited to 'TESTING')
-rw-r--r-- | TESTING | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -0,0 +1,19 @@ +== When testing == + +When testing, be sure to set TPL_TEST_MODE enviromental variable. +A log base for testing is placed in TPL_TEST_LOG_DIR. + +== When writing code == + +If an object should behave in a different way, depending on wheter it is in a +testing enviroment or not, you should rely on the present of TPL_TEST_MODE +variable. + +TplLogStore interface defines a "testmode" property which when set TRUE will set +the log store supporting it they are in a testing enviroment. +Add support for this property in case the log store needs it. + +TplLogManager will set this property automatically on any automatically added +store, when TPL_TEST_MODE is set. + + |