I tried to execute 'tox -e cover', but following error has occurred:
I think there are 2 bugs:
1. requirement package("influxdb" and "cassandra-drivers") is not defined at requirements.txt but tox.ini for only [testenv] section.
2. coverage option "--coverage-package-name" is missing. This is necessary when the directory name is different like "monasca-api" and "monasca_api".
I tried to execute 'tox -e cover', but following error has occurred:
I think there are 2 bugs:
1. requirement package("influxdb" and "cassandra- drivers" ) is not defined at requirements.txt but tox.ini for only [testenv] section. package- name" is missing. This is necessary when the directory name is different like "monasca-api" and "monasca_api".
2. coverage option "--coverage-
[Environment] 4912f3b154818f8 f3d6abfd0f
master(Last commit: 2bb7c963152bca0
[How to reprocude] /github. com/openstack/ monasca- api.git
$ git clone https:/
$ cd monasca-api
$ tox -e cover
[Result] workspace/ monasca- api/.tox/ cover work/workspace/ monasca- api/requirement s.txt, -r/home/ work/workspace/ monasca- api/test- requirements. txt workspace/ monasca- api =1.4.0, Babel== 2.3.4,cffi= =1.8.3, coverage= =4.2,cryptograp hy==1.5. 1,debtcollector ==1.8.0, enum34= =1.1.6, eventlet= =0.19.0, extras= =1.0.0, falcon= =1.0.0, fixtures= =3.0.0, flake8= =2.5.5, funcsigs= =1.0.2, functools32= =3.2.3. post2,greenlet= =0.4.10, hacking= =0.10.2, httplib2= =0.9.2, idna==2. 1,ipaddress= =1.0.17, iso8601= =0.1.11, Jinja2= =2.8,jsonschema ==2.5.1, kafka-python= =0.9.5, kazoo== 2.2.1,keystonea uth1==2. 12.1,keystonemi ddleware= =4.9.0, linecache2= =1.0.0, MarkupSafe= =0.23,mccabe= =0.2.1, mock==2. 0.0,-e git+https:/ /github. com/openstack/ monasca- api.git@ 2bb7c963152bca0 4912f3b154818f8 f3d6abfd0f# egg=monasca_ api,monasca- common= =1.1.0, monotonic= =1.2,mox= =0.5.3, mox3==0. 18.0,msgpack- python= =0.4.8, netaddr= =0.7.18, netifaces= =0.10.5, nose==1. 3.7,-e git+https:/ /git.openstack. org/openstack/ requirements@ 53deafe3ba691ce 37a489241549476 51de4cb06c# egg=openstack. requirements, os-client- config= =1.21.1, os-testr= =0.7.0, oslo.config= =3.17.0, oslo.context= =2.9.0, oslo.i18n= =3.9.0, oslo.log= =3.16.0, oslo.middleware ==3.19. 0,oslo. serialization= =2.13.0, oslo.utils= =3.16.0, oslotest= =2.10.0, packaging= =16.7,paramiko= =2.0.2, Parsley= =1.3,PasteDeplo y==1.5. 2,pbr== 1.10.0, pep8==1. 5.7,positional= =1.1.1, pyasn1= =0.1.9, pycadf= =2.4.0, pycparser= =2.14,pyflakes= =0.8.1, pyinotify= =0.9.6, PyMySQL= =0.7.9, pyparsing= =2.1.9, python- dateutil= =2.5.3, python- keystoneclient= =3.5.0, python- mimeparse= =1.5.2, python- subunit= =1.2.0, pytz==2016. 6.1,PyYAML= =3.12,requests= =2.11.1, requestsexcepti ons==1. 1.3,rfc3986= =0.4.1, simplejson= =3.8.2, six==1. 10.0,SQLAlchemy ==1.0.15, stevedore= =1.17.1, tempest- lib==1. 0.0,testreposit ory==0. 0.20,testscenar ios==0. 5.0,testtools= =2.2.0, traceback2= =1.4.0, ujson== 1.35,unittest2= =1.1.0, voluptuous= =0.9.3, WebOb== 1.6.1,wrapt= =1.10.8 '1312201449' args=^( ?!.*test. *coverage) .*$ OS_STDOUT_ CAPTURE= ${OS_STDOUT_ CAPTURE: -1} \ CAPTURE= ${OS_STDERR_ CAPTURE: -1} \ TIMEOUT= ${OS_TEST_ TIMEOUT: -60} \ api.tests. test_repositori es work/workspace/ monasca- api/.tox/ cover/local/ lib/python2. 7/site- packages/ unittest2/ loader. py", line 456, in _find_test_path module_ from_name( name) work/workspace/ monasca- api/.tox/ cover/local/ lib/python2. 7/site- packages/ unittest2/ loader. py", line 395, in _get_module_ from_name _(name) api/tests/ test_repositori es.py", line 22, in <module> api.common. repositories. cassandra. metrics_ repository as cassandra_repo api/common/ repositories/ cassandra/ metrics_ repository. py", line 24, in <module> work/workspace/ monasca- api/.tox/ cover/bin/ python setup.py testr --coverage --testr- args=^( ?!.*test. *coverage) .*$' _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ ______ summary _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ ______
cover recreate: /home/work/
cover installdeps: -r/home/
cover develop-inst: /home/work/
cover installed: appdirs=
cover runtests: PYTHONHASHSEED=
cover runtests: commands[0] | python setup.py testr --coverage --testr-
running testr
running=
OS_STDERR_
OS_TEST_
${PYTHON:-python} -m subunit.run discover -t . ./monasca_api/tests --list
Coverage.py warning: Module monasca-api was never imported.
Coverage.py warning: No data was collected.
--- import errors ---
Failed to import test module: monasca_
Traceback (most recent call last):
File "/home/
module = self._get_
File "/home/
__import_
File "monasca_
import monasca_
File "monasca_
from cassandra.cluster import Cluster
ImportError: No module named cassandra.cluster
Non-zero exit code (2) from test listing.
error: testr failed (3)
ERROR: InvocationError: '/home/
_______
ERROR: cover: commands failed