Flaws of current `.travis.yml` test suite
vlcinsky opened this issue · 2 comments
vlcinsky commented
Current test suite as defined in travis.yml
and Makefile
has couple of problems:
- tests only python 2.7 and 3.6
- difficult to run locally for multiple python versions
Makefile
requiremake
, which is not always available under Windows making test setup more difficult- use of
pipenv
brings problems:- test is slowed down
- current
Pipfile
installs dependencies, which shall be installed withrecords
package, effectively hiding possible problems insetup.py
requirements (e.g.setup.py
omitting important dependency, which shall be installed by it). - is is not clear, where gets
pytest
installed
Proposal for fix is:
- do not use
pipenv
for testing (Pipfile.lock
is not used, requirements shall be defined bysetup.py
sodefault
section inPipfile
shall be empty or only with-e .
) Vulnerability to pypi python package updates can be considered as positive feature (detecting real life cases, which shall work well) - refactor
.travis.yml
totox