Added tox.ini to runtests on multiple python envs
Also updated python setup.py test to run in CI configuration
This commit is contained in:
@@ -5,3 +5,7 @@
|
|||||||
test_elasticsearch/cover
|
test_elasticsearch/cover
|
||||||
docs/_build
|
docs/_build
|
||||||
elasticsearch.egg-info
|
elasticsearch.egg-info
|
||||||
|
.tox
|
||||||
|
*.egg
|
||||||
|
coverage.xml
|
||||||
|
nosetests.xml
|
||||||
|
|||||||
@@ -21,6 +21,8 @@ tests_require = [
|
|||||||
'nose',
|
'nose',
|
||||||
'coverage',
|
'coverage',
|
||||||
'mock',
|
'mock',
|
||||||
|
'pyaml',
|
||||||
|
'nosexcover'
|
||||||
]
|
]
|
||||||
|
|
||||||
# use external unittest for 2.6
|
# use external unittest for 2.6
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ def run_all(argv=None):
|
|||||||
# always insert coverage when running tests
|
# always insert coverage when running tests
|
||||||
if argv is None:
|
if argv is None:
|
||||||
argv = [
|
argv = [
|
||||||
'nosetests',
|
'nosetests', '--with-xunit',
|
||||||
'--with-coverage', '--cover-package=elasticsearch', '--cover-erase',
|
'--with-xcoverage', '--cover-package=elasticsearch', '--cover-erase',
|
||||||
'--nocapture', '--nologcapture',
|
'--nocapture', '--nologcapture',
|
||||||
'--verbose',
|
'--verbose',
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user