Community: Framework mailing list archives

expert-framework@mail.odoo.com

Re: How to run tests?

by
manuel
- 09/17/2014 11:00:23
Le 17/09/14 10:48, Leonardo Pistone a écrit :
> > The openerp-command package says it's legacy.  The openerp-server has an
> > '--test-enable' but passing it seems to do nothing, it just runs the server.
>
> In addition to --test-enable, you should also pass -u followed by the
> module you want to test, --stop-after-init, and to log all tests that
> are being run, --log-level=test (or in v8, --log-level=debug)
>
> _______________________________________________
> Mailing-List: https://www.odoo.com/groups/community-framework-62
> Post to: mailto:expert-framework@mail.odoo.com
> Unsubscribe: https://www.odoo.com/groups?unsubscribe
>


Still nothing:

$ bin/openerp-server --test-enable -u account --log-level=test 
--stop-after-init
2014-09-17 14:59:28,962 16269 INFO ? openerp: OpenERP version 
7.0-20140216-002751
2014-09-17 14:59:28,962 16269 INFO ? openerp: addons paths: 
/home/manu/.buildout/eggs/openerp-7.0_20140216_002751-py2.7.egg/openerp/addons
2014-09-17 14:59:28,962 16269 INFO ? openerp: database hostname: localhost
2014-09-17 14:59:28,962 16269 INFO ? openerp: database port: 5432
2014-09-17 14:59:28,962 16269 INFO ? openerp: database user: manu


And that's it.