diff options
| author | Martin Trigaux <mat@odoo.com> | 2019-07-16 09:14:17 +0000 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2019-07-16 09:14:17 +0000 |
| commit | cf8e74a1a7d3404f57798573e8b15ce4dc5b9be4 (patch) | |
| tree | bd95e9d20aff9b4f92550bffb2835a55c3698c27 /odoo/tools/config.py | |
| parent | b67a3bb403b80e98a2b66dcb8cf570d2b156fb68 (diff) | |
| parent | 1bd434da34731b5467cc17fdffe6f3ed5dfea2d4 (diff) | |
[MERGE] Forward port of 12.0 to saas-12.2 up to 1bd434da34731b546
closes odoo/odoo#34901
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'odoo/tools/config.py')
| -rw-r--r-- | odoo/tools/config.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/odoo/tools/config.py b/odoo/tools/config.py index 7dd36c6a133..583ab4ad267 100644 --- a/odoo/tools/config.py +++ b/odoo/tools/config.py @@ -160,7 +160,14 @@ class configmanager(object): dest='test_enable', help="Enable unit tests.") group.add_option("--test-tags", dest="test_tags", - help="Comma separated list of tags to filter which tests to excute. Enable unit tests if set.") + help="""Comma separated list of spec to filter which tests to execute. Enable unit tests if set. + A filter spec has the format: [-][tag][/module][:class][.method] + The '-' specifies if we want to include or exclude tests matching this spec. + The tag will match tags added on a class with a @tagged decorator. By default tag value is 'standard' when not + given on include mode. '*' will match all tags. Tag will also match module name (deprecated, use /module) + The module, class, and method will respectively match the module name, test class name and test method name. + examples: :TestClass.test_func,/test_module,external + """) parser.add_option_group(group) |
