Last active
June 16, 2017 13:15
-
-
Save simahawk/5d43eb72ca1d56634ceac41916bb272d to your computer and use it in GitHub Desktop.
Odoo nosetests how to configure and run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[openerp] | |
eggs += nose | |
openerp_scripts = nosetests command-line-options=-d openerp-log-level=WARN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# "-s" captures stdout allowing use of pdb | |
# to run all tests per module | |
bin/nosetests_openerp -d dbname -- path/to/module -s | |
# to run all tests per file | |
bin/nosetests_openerp -d dbname -- path/to/module/tests/foo.py -s | |
# to run only a suite | |
bin/nosetests_openerp -d dbname -- path/to/module/tests/foo.py:TestCase -s | |
# to run only a single test | |
bin/nosetests_openerp -d dbname -- path/to/module/tests/foo.py:TestCase.test_foo -s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment