December 2018
Beginner to intermediate
404 pages
10h 14m
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 -c 12-library.conf --test-enable -u library_checkout --stop-after-init
Only the modules installed or upgraded will be tested—that's why the -u option was used. 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 afterward, run the tests while upgrading (-u) the module to test.
The tests we have don't actually test anything yet, but they should run without failing. Having a close ...
Read now
Unlock full access