I have tox.ini in my project, and I want for running and showing test in visual studio code, using python tox, but I don't know how to do it?
Asked
Active
Viewed 2,926 times
2 Answers
3
Update: since June 2021 there is a Visual Studio Code extension for tox: python-tox.
To use:
- Install the extension
- Ensure that tox is installed in the base version of Python running on your OS
- Open the command palette (Cmd-Shift-P on a Mac)
- Type
tox
- Select from one of the available commands (see the extension homepage for details)
Disclaimer: I am not the author of the extension, but kudos to the author.

Dawngerpony
- 3,288
- 2
- 34
- 32
1
As far as I know there is no tox
extension for VS Code.
I just open the integrated terminal within VS Code and run it.
You can also run any external tool, e.g. tox
via a so-called task, see https://code.visualstudio.com/docs/editor/tasks

Jürgen Gmach
- 5,366
- 3
- 20
- 37