Browse Source

Adds test documentation

Adrien Panay 7 years ago
parent
commit
7bc0aa3a26
1 changed files with 22 additions and 0 deletions
  1. 22 0
      doc/test.md

+ 22 - 0
doc/test.md View File

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