|
@@ -0,0 +1,24 @@
|
|
1
|
+# Running tests #
|
|
2
|
+
|
|
3
|
+## Intro ##
|
|
4
|
+
|
|
5
|
+Tests on `Tracim` lays on:
|
|
6
|
+- [`TurboGears` tests](http://turbogears.readthedocs.io/en/tg2.3.7/turbogears/testing.html)
|
|
7
|
+- [`nose` test tool](http://nose.readthedocs.io/en/latest/).
|
|
8
|
+
|
|
9
|
+In order to use the `nosetests [...]` commands, change your current directory to be `tracim/` from the root of the project, also usually named `tracim/` :
|
|
10
|
+
|
|
11
|
+ (tg2env) user@host:~/tracim$ cd tracim/
|
|
12
|
+ (tg2env) user@host:~/tracim/tracim$
|
|
13
|
+
|
|
14
|
+## All tests ##
|
|
15
|
+
|
|
16
|
+ nosetests
|
|
17
|
+
|
|
18
|
+## One test ##
|
|
19
|
+
|
|
20
|
+ nosetests tracim/tests/models/test_content.py:TestContent.test_query
|
|
21
|
+
|
|
22
|
+## Allow debugger ##
|
|
23
|
+
|
|
24
|
+ nosetests -s
|