question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use Tox for running tests

See original GitHub issue

We 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:

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:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cool-RRcommented, Apr 23, 2019

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.

0reactions
bittnercommented, Apr 24, 2019

@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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found