summaryrefslogtreecommitdiff
path: root/TESTING
diff options
context:
space:
mode:
authorCosimo Alfarano <cosimo.alfarano@collabora.co.uk>2011-01-10 18:33:09 +0000
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2011-01-21 17:17:57 -0500
commit4045a4061d3a4d8ea5a5ae6ce72607ab4e9234ff (patch)
tree8c30f28800ec7eae3954cf801aeb16d1b199df2c /TESTING
parent7b0f697552829400077df776a2038fbccb0235ca (diff)
downloadtelepathy-logger-4045a4061d3a4d8ea5a5ae6ce72607ab4e9234ff.tar.gz
add TESTING file, for instruction how to test modules (to be completed)
Diffstat (limited to 'TESTING')
-rw-r--r--TESTING19
1 files changed, 19 insertions, 0 deletions
diff --git a/TESTING b/TESTING
new file mode 100644
index 0000000..8c9fbb6
--- /dev/null
+++ b/TESTING
@@ -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.
+
+