【问题标题】:no tests run, please check the configuration settings没有测试运行,请检查配置设置
【发布时间】:2018-07-16 19:34:11
【问题描述】:

我正在使用 Python 运行 VS 代码。当我在编辑窗口中选择运行测试或运行当前单元测试文件时,我收到上述警告。运行调试似乎工作正常。 为什么? 我的工作区设置如下:

   {
        "python.pythonPath": "C:\\Users\\declan\\python.exe",
        "python.unitTest.unittestArgs": [
            "-v",
            "-s",
            ".",
            "-p",
            "*Test*.py"
        ],
        "python.unitTest.pyTestEnabled": false,
        "python.unitTest.nosetestsEnabled": false,
        "python.unitTest.unittestEnabled": true
    }

否则我没有更改默认值。

【问题讨论】:

  • 请分享您的配置设置,这样我们就不必猜测了。

标签: python debugging visual-studio-code


【解决方案1】:

原来是代码和测试代码的几个错误。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-04-11
    • 1970-01-01
    • 1970-01-01
    • 2015-11-20
    • 1970-01-01
    • 1970-01-01
    • 2018-12-20
    • 2014-12-20
    相关资源
    最近更新 更多