Running tests
The tests are written, it's time to run them. For that we just need to add the --test-enable
option to the Odoo server start command, while installing or upgrading (-i
or -u
) the addon module.
The command would look like this:
$ ./odoo-bin -d todo --test-enable -i todo_wizard --stop-after-init
--addons-path="..."
Only the modules installed or upgraded will be tested. If some dependencies need to be installed, their tests will run too. If you want to avoid this, you can install the module to test the usual way, and then run the tests while performing an upgrade (-u
) of the module to test.