March 2018
Beginner to intermediate
336 pages
8h 22m
English
The tests are written, so now 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 will look like this:
$ ./odoo-bin -d todo --test-enable -u todo_stage --stop-after-init
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 you wish to test the usual way, and then run the tests while performing an upgrade (-u) of the module to test.
Read now
Unlock full access