Use Tox for running tests
See original GitHub issueWe should add a Tox configuration (tox.ini
) to allow running all tests locally, and use tox-travis
in the CI configuration to make the expansion automatic.
Here are a few examples to see how that’s meant to work:
- https://github.com/vshn/concierge-cli
- https://github.com/bittner/pyclean
- https://github.com/mdgart/sentrylogs
- https://github.com/jazzband/django-analytical
- https://github.com/behave/behave-django
Note that this also allows to encapsulate the test requirements into tox.ini
(and subsequently can make the test requirements file unnecessary 👍).
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
How to run tests with tox.ini - python - Stack Overflow
Usually the easiest way to run tests when there is a tox.ini is to just invoke tox itself (which you can install with...
Read more >Python tox - Why You Should Use It and Tutorial
tox aims to automate and standardize testing in Python. It is part of a larger vision of easing the packaging, testing and release...
Read more >Running Commands with Tox
Tox is a general purpose tool for automating Python testing. We recommend using tox to specify the environments in which your tests are...
Read more >tox
tox is a generic virtual environment management and test command line tool you can use for: checking your package builds and installs correctly...
Read more >Testing With Tox — Python 401 2.1 documentation
To help close the gap, tox allows us to run tests in any number of different Python environments. Tox is based on virtualenv...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m wary of depending on external services. Thanks for the suggestion anyway @lockwooddev , it’s appreciated.
Tox is pretty mature. Peter, feel free to go ahead if you wish.
@lockwooddev @1138-4EB You’re both right.
The main reason to prefer a Python technology before getting help with other technology is to both lower the barrier for Python developers and stick to common Python practices.
Using Docker is always a valid choice, nowadays, and it’s good that you point out the possibilities. Thank you!