Skip to content

Run tests command completely ignores additionally configured arguments #25211

Open
@lexicalunit

Description

@lexicalunit

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.100.2 (Universal)
  • OS Version: macOS 15.5 24F74

Steps to Reproduce:

I have a python project that uses pytest for testing. In the Testing tab I have configured tests and the side panel shows all my tests. I navigate to a test file and I want to run a single test in that file. I click the green play button to the left of the line number where the test starts.

The Test Results pane on the bottom comes up and my test starts running. In this pane I see the command that was run:

Running pytest with args: ['-p', 'vscode_pytest', '--rootdir=/Users/me/source/project', '/Users/me/source/project/tests/test_scheduler.py::test_lag']

However, if you look in my vscode settings file, I have this:

{
  "python.testing.pytestArgs": [
    "--reuse-db",
    "--disable-pytest-warnings",
    "-vv",
    "--no-header",
    "--show-capture=stdout",
    "--capture=tee-system"
  ]
}

And none of these arguments were applied to the test run. They are completely ignored and apparently broken and not used for anything.

Metadata

Metadata

Assignees

Labels

area-testinginfo-neededIssue requires more information from postertriage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions