Skip to content

Pytest "Unknown command line option" #21805

@RobertPaulson90

Description

@RobertPaulson90

2023-08-13 21:18:33.701 [info] Discover tests for workspace name: azure-landing-zone - uri: /workspaces/azure-landing-zone
2023-08-13 21:18:33.701 [warning] Unknown command line option passed into args parser for tests '-k not integration_tests'. Please report on https://github.com/Microsoft/vscode-python/issues/new

I get this warning but it works perfectly fine and as expected - my integration_tests are not being picked up in this case.

My settings.json file

{
    "azureFunctions.deploySubpath": "functions",
    "azureFunctions.projectSubpath": "functions",
    "azureFunctions.scmDoBuildDuringDeployment": true,
    "azureFunctions.projectLanguage": "Python",
    "azureFunctions.projectRuntime": "~4",    
    "debug.internalConsoleOptions": "neverOpen",
    "python.testing.pytestArgs": [
        "tests",
        "-k not integration_tests"
    ],
    "python.testing.unittestEnabled": false,
    "python.testing.pytestEnabled": true,
    "python.testing.cwd": "${workspaceFolder}/functions"
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions