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.
I am trying to run all OpenERP tests and so far, I have come up with this command line arguments:
python server/7.0/openerp-server -c conf/70.conf -d Test --without-demo --test-enable --test-commit --init=all
but it doesn't seem to install all the modules.
What are the arguments used to launch OpenERP and get this result: http://runbot.openerp.com/openerp-dev-7-0-6515/logs/test-all.txt
First, about your command:
--test-enable are exclusive: the tests need the demo data.
--init all doesn't exist. On the runbot, all the modules are provided (within a single comma-separated string). This is not the command used on the runbot, but you can use somthing similar to
find openerp/addons -name '__openerp__.py' -printf "%h\n" | xargs -I file basename file | sort | xargs | tr ' ' ','
to get all the addons (assuming they live inside
openerp/addons). Actually sorting the module names is not necessary.
--test-commit is not needed. I never tried but it could even mean some test would no longer pass.
Now, about the command used by the runbot.
The runbot uses this small script.
Actually, here is the command used for the particular build you're referring to:
runbot-job-7 --db-prefix 7-0-6515 --log-prefix ./static/openerp-dev-7-0-6515/logs --server-path ./static/openerp-dev-7-0-6515/server --addons-path ./static/openerp-dev-7-0-6515/server/openerp/addons --web-path ./static/openerp-dev-7-0-6515/server/openerp --test-port 9235
That script itself uses the
oe command. Please note that the
oe command lived previously in the
openerp-command project, but is now part of the
The full source code of the runbot is available in the openerp-tools project.
Some documentation for the
oe command is available.
Some documentation about the (new, i.e. not YAML) integrated testing infrastructure is available.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
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: 4/8/13, 5:50 PM|
|Seen: 1503 times|
|Last updated: 3/16/15, 8:10 AM|