Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Tests are launched when you install or update modules. If you want to launch the tests of the sale module and all it's dependencies, you have to create a demo database and
./openerp-server --addons-path=... -d mydb --log-level=test -i sale --test-enable
The argument --log-level=test is not required, but if you omit it, you will not see the logs of all tests that are executed.
Optionally, you can add:
If you develop on the sale module, you can run the server with the same argumentsn but with -u instead of -i (and avoid the createdb command) so that it relaunches only the tests of the sale module.
You need to first enter to the path where your server resides and use the following command. for eg:
naresh@naresh:~/server$ ./openerp-server --addons-path=../addons,../web/addons/
For running tests you can use from this options when you start your server.
--test-file=TEST_FILE Launch a YML test file. --test-report-directory=TEST_REPORT_DIRECTORY If set, will save sample of all reports in this directory. --test-enable Enable YAML and unit tests. --test-commit Commit database changes performed by YAML or XML tests.
hi All, please give me some advice..
I have been trying to test the YAML test on openerp 6.0.4... ubuntu 11.04 server..
@Naresh Soni : "naresh@naresh:~/server$ ./openerp-server --addons-path=../addons,../web/addons/"
i was confused about that.. when i want to access the addons, i typed on my ubuntu server like this : /opt/openerp/server/bin/addons
I stuck on the command which used to test the YAML..
Thank You Sir
I cannot see test execution.
I submitted follow command
./lp/openerp/openerp-server --log-level=test -u base --test-enable --test-report-directory=./testlog -d mydb
I do not see anything in log file.
I do no see nothing in ./testlog directory
What do I wrong?
Antonio Maria Vigliotti
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 2/8/13, 12:35 PM|
|Seen: 13984 times|
|Last updated: 9/4/15, 2:44 PM|