diff options
| author | Xavier Morel <xmo@openerp.com> | 2012-10-29 13:04:26 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2012-10-29 13:04:26 +0100 |
| commit | e7fbd7290f430dd67e9b3f093aea837bdef6f81d (patch) | |
| tree | 7cd8aafb57d15c54dc864483aa0e9d3a1eda2c03 /addons | |
| parent | a9f1489fd0dc32901823fbe09fc323479a444048 (diff) | |
[IMP] add a doc blurb to testing.section and testing.case
bzr revid: xmo@openerp.com-20121029120426-xdk03e5gvv1n03jw
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/web/doc/testing.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/addons/web/doc/testing.rst b/addons/web/doc/testing.rst index 2d5876776a3..e870ec091b7 100644 --- a/addons/web/doc/testing.rst +++ b/addons/web/doc/testing.rst @@ -497,6 +497,13 @@ Testing API .. js:function:: openerp.testing.section(name[, options], body) + A test section, serves as shared namespace for related tests (for + constants or values to only set up once). The ``body`` function + should contain the tests themselves. + + Note that the order in which tests are run is essentially + undefined, do *not* rely on it. + :param String name: :param TestOptions options: :param body: @@ -504,6 +511,10 @@ Testing API .. js:function:: openerp.testing.case(name[, options], callback) + Registers a test case callback in the test runner, the callback + will only be run once the runner is started (or maybe not at all, + if the test is filtered out). + :param String name: :param TestOptions options: :param callback: |
