summaryrefslogtreecommitdiff
path: root/doc/reference
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2015-01-15 15:23:08 +0100
committerXavier Morel <xmo@odoo.com>2015-01-15 15:23:08 +0100
commitaf90f5f6388d4a116a1c705de3d741f812ab6636 (patch)
tree66cddac980fa46417c902a638ed76e9f0804d2ab /doc/reference
parent87dd06c941ac0dd7a42e528900938603aca891cb (diff)
parent65cd4a2a330e8ed4134af3bbb3b015600bfffcc3 (diff)
[IMP] test experience and documentation
closes #3152
Diffstat (limited to 'doc/reference')
-rw-r--r--doc/reference/testing.rst18
1 files changed, 13 insertions, 5 deletions
diff --git a/doc/reference/testing.rst b/doc/reference/testing.rst
index 2676c2b4084..e1c78919f15 100644
--- a/doc/reference/testing.rst
+++ b/doc/reference/testing.rst
@@ -24,8 +24,16 @@ and ``__init__.py`` contains::
from . import test_foo, test_bar
-.. note:: test modules which are not imported from ``tests/__init__.py`` will
- not be run
+.. warning::
+
+ test modules which are not imported from ``tests/__init__.py`` will not be
+ run
+
+.. versionchanged:: 8.0
+
+ previously, the test runner would only run modules added to two lists
+ ``fast_suite`` and ``checks`` in ``tests/__init__.py``. In 8.0 it will
+ run all imported modules
The test runner will simply run any test case, as described in the official
`unittest documentation`_, but Odoo provides a number of utilities and helpers
@@ -46,8 +54,8 @@ been installed, and not run right after the module installation:
.. autofunction:: openerp.tests.common.post_install
The most common situation is to use
-:class:`~openerp.tests.common.TransactionCase` and test a property of a of a
-model in each method::
+:class:`~openerp.tests.common.TransactionCase` and test a property of a model
+in each method::
class TestModelA(common.TransactionCase):
def test_some_action(self):
@@ -67,7 +75,7 @@ Tests are automatically run when installing or updating modules if
Odoo server.
As of Odoo 8, running tests outside of the install/update cycle is not
-
+supported.
.. _unittest2: http://pypi.python.org/pypi/unittest2
.. _unittest documentation: https://docs.python.org/2/library/unittest.html