Procházet zdrojové kódy

Adds test documentation

Adrien Panay před 6 roky
rodič
revize
7bc0aa3a26
1 změnil soubory, kde provedl 22 přidání a 0 odebrání
  1. 22 0
      doc/test.md

+ 22 - 0
doc/test.md Zobrazit soubor

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