Browse Source

Merge pull request #332 from tracim/fix/254/test_documentation

Damien Accorsi 7 years ago
parent
commit
fff5215859
1 changed files with 24 additions and 0 deletions
  1. 24 0
      doc/test.md

+ 24 - 0
doc/test.md View File

@@ -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