summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2011-03-21 13:23:28 +0100
committerXavier Morel <xmo@openerp.com>2011-03-21 13:23:28 +0100
commit562de2d9a93aadc817d9544be22761487b77bb9f (patch)
tree2b98986c8325f8c02552515b8f758a08b82db3a8 /doc/source
parent698875cc27aa41dd8c211a6463108447dfdf5007 (diff)
[ADD] documentation on running tests in OpenERP Web core
bzr revid: xmo@openerp.com-20110321122328-u1u55gbf3rfks2xv
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/addons.rst2
-rw-r--r--doc/source/development.rst23
2 files changed, 24 insertions, 1 deletions
diff --git a/doc/source/addons.rst b/doc/source/addons.rst
index e24cd8e6957..976054bc47e 100644
--- a/doc/source/addons.rst
+++ b/doc/source/addons.rst
@@ -50,6 +50,8 @@ Structure
``tests/``
The directories in which all tests for the addon are located.
+.. _addons-testing:
+
Testing
-------
diff --git a/doc/source/development.rst b/doc/source/development.rst
index aebf57c1086..a2be0ec2eef 100644
--- a/doc/source/development.rst
+++ b/doc/source/development.rst
@@ -6,4 +6,25 @@ Contributing to OpenERP Web
* QWeb code documentation/description
* Documentation of the OpenERP APIs and choices taken based on that?
* Style guide and coding conventions (PEP8? More)
-* Test frameworks for Python and JS?
+* Test frameworks in JS?
+
+Testing
+-------
+
+Python
+++++++
+
+Testing for the OpenERP Web core is similar to :ref:`testing addons
+<addons-testing>`: the tests live in ``openerpweb.tests``, unittest2_
+is the testing framework and tests can be run via either unittest2
+(``unit2 discover``) or via nose_ (``nosetests``).
+
+Tests for the OpenERP Web core can also be run using ``setup.py
+test``.
+
+
+.. _unittest2:
+ http://www.voidspace.org.uk/python/articles/unittest2.shtml
+
+.. _nose:
+ http://somethingaboutorange.com/mrl/projects/nose/1.0.0/