gpt4 book ai didi

python - 如何在 visual studio 代码中内置运行 python tox 命令和测试

转载 作者:行者123 更新时间:2023-12-05 03:44:47 24 4
gpt4 key购买 nike

我的项目中有 tox.ini,我想使用 python tox 在 vi​​sual studio 代码中运行和显示测试,但我不知道该怎么做?

最佳答案

更新:自 2021 年 6 月以来, 有一个针对 tox 的 Visual Studio Code 扩展:python-tox .

使用:

  1. 安装扩展
  2. 确保在您的操作系统上运行的基本 Python 版本中安装了 tox
  3. 打开 command palette (在 Mac 上为 Cmd-Shift-P)
  4. 输入tox
  5. 从可用命令之一中选择(有关详细信息,请参阅扩展主页)

免责声明:我不是扩展程序的作者,但感谢作者。

关于python - 如何在 visual studio 代码中内置运行 python tox 命令和测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66284076/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com