impactlab / eemeter

‼️ MOVED TO https://github.com/openeemeter/eemeter - Core computation engine for the Open Energy Efficiency Meter
https://eemeter.readthedocs.io/
MIT License
25 stars 13 forks source link

Tests don't pass following instructions #94

Closed jason-curtis closed 9 years ago

jason-curtis commented 9 years ago
$ python --version
Python 2.7.6
$ git clone https://github.com/impactlab/eemeter
$ cd eemeter
$ virtualenv eemeter; source eemeter/bin/activate
$ pip install scipy pytest lxml pandas xlrd sqlalchemy  # Feels like it should be covered in setup.py install_requires or somewhere
$ python setup.py develop
$ py.test --runslow
[... lots and lots of output...]
===================== 1020 failed, 14270 passed, 86 pytest-warnings, 469 error in 229.54 seconds ======================

the failures are from a mix of missing requirements and other things (for instance, AttributeError: 'TestOptimize' object has no attribute 'maxiter' )

suggestion: use something like tox, which is built for easy test environment setup, to organize your test setup instead of using travis.yml. Layer travis on top of that to allow travis to run your tests (here's an example). That makes it easy to reproducibly create working virtualenvs/run tests locally as well as automatically on travis.

Also, a possibly related observation - the latest py2.7 travis build also had a test failure which did not cause the build to fail. Not sure what the story is there.

jason-curtis commented 9 years ago

Looks like I was making the virtualenv incorrectly. Sorry for the noise.