New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#128 Add Tox #130
#128 Add Tox #130
Conversation
The flake8 tests are currently failing which is causing the build to fail, but I figured that fixing pep8 warnings was outside the scope of this PR. |
basepython = python3.4 | ||
commands = coverage run tests/runtests.py | ||
coverage report -m --fail-under 50 | ||
deps = -rrequirements-tests.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage shouldn't need a test env
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, it doesn't need one. Putting it in a test env is mostly a matter of convenience. This way when you run Tox locally on a branch it will give you back the coverage results as well without having to run coverage separately and it will still run coverage on Travis.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think coverage should be included as base test command. It is in requirerements-tests.txt, so we could use it easily in tox.
@benred42: Thanks for all, we really appreciate contributions ! I thought a
What do you think about ? |
Sure, that looks good to me. I can put most of that together. I'm not familiar with Prospector, but it doesn't look difficult to use and certainly looks useful so it'll be nice to give it a try! |
@ZuluPro: Do my latest edits look more in line with what you were thinking for the project? |
Yep that's great, but I think something like: https://github.com/ZuluPro/myblog/blob/master/tox.ini Can you use And It would be great to have a Travis' job by Tox environment. If you don't want to do it, I'll make after your PR. |
You don't actually need to use the |
Ok I understand and
|
Ah, gotcha. So, I guess just leaving the line in Travis pinning coverage to 3.7.1 should be fine then? |
Yep remove this line, decrease the number of commit. It will be more simple. |
Sure, that's fine by me. Just be aware that removing |
@benred42 |
You're very welcome! Glad to help. |
Fixes #128. Adds Tox testing management with TravisCI support. I did not add Tox to any of your requirements files but opted to add documentation on how to install and use Tox to tests/README.rst.