Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Python VS代码中通过测试资源管理器运行功能文件场景?_Python_Gherkin_Python Behave_Test Explorer_Pytest Bdd - Fatal编程技术网

如何在Python VS代码中通过测试资源管理器运行功能文件场景?

如何在Python VS代码中通过测试资源管理器运行功能文件场景?,python,gherkin,python-behave,test-explorer,pytest-bdd,Python,Gherkin,Python Behave,Test Explorer,Pytest Bdd,我试图通过测试资源管理器在VS代码中运行我的行为场景。 我的功能文件和步骤文件被正确绑定,因为同一个项目在Pycharm专业版(试用版)上工作。我看不到我的测试资源管理器正在加载我的方案。我需要设置哪些配置?我是python新手。 我已经安装了以下支持行为的扩展 行为测试浏览器 黄瓜小黄瓜全力支持 Specflow工具 测试浏览器用户界面 蟒蛇 下面是我的launch.json { "python.testing.pytestArgs": [ &quo

我试图通过测试资源管理器在VS代码中运行我的行为场景。 我的功能文件和步骤文件被正确绑定,因为同一个项目在Pycharm专业版(试用版)上工作。我看不到我的测试资源管理器正在加载我的方案。我需要设置哪些配置?我是python新手。 我已经安装了以下支持行为的扩展

  • 行为测试浏览器
  • 黄瓜小黄瓜全力支持
  • Specflow工具
  • 测试浏览器用户界面
  • 蟒蛇
  • 下面是我的launch.json

    {
        "python.testing.pytestArgs": [
            "venv"
        ],
        "python.testing.unittestEnabled": true,
        "python.testing.nosetestsEnabled": false,
        "python.testing.pytestEnabled": false,
        "python.testing.unittestArgs": [
            "-v",
            "-s",
            "./Tests",
            "-p",
            "*test.py"
        ]
    }
    
    测试资源管理器中没有测试: