Configure Tests command overrides project testpaths #23714
Labels
area-testing
info-needed
Issue requires more information from poster
triage-needed
Needs assignment to the proper sub-team
Type: Bug
Behaviour
Discover tests is overriding standard testpaths after configuration with the "Configure Tests" command.
By forcing the selection of the directory, the pytest --collect-only test discovery is run with a single directory as the argument, which overrides any testpaths set in external tools, for example pyproject.toml
If the command allows skipping of the directory selection, and doesn't set the related pytestArgs setting, test discovery will run normally.
Steps to reproduce:
Diagnostic data
From the Python output logs:
From the settings:
Extension version: 2024.8.1
VS Code version: Code 1.90.2 (5437499feb04f7a586f677b155b039bc2b3669eb, 2024-06-18T22:33:48.698Z)
OS version: Linux x64 6.8.0-36-generic
Modes:
Remote OS version: Linux x64 6.8.0-36-generic
The text was updated successfully, but these errors were encountered: