Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot find tests when the test files are named as "*.test.py" instead of "*_test.py" #202280

Closed
shelper opened this issue Jan 11, 2024 · 1 comment
Assignees

Comments

@shelper
Copy link

shelper commented Jan 11, 2024

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

  • VS Code Version: 1.85.1
  • OS Version: windows 10

Steps to Reproduce:

  1. create a project for python, put some tests in the project_root/tests folder called "example_test.py"
  2. configure the settings for python unittest like
"python.testing.unittestArgs": [
  "-v",
  "-s",
  "./tests",
  "-p",
  "*_test.py"
]
  1. all the tests in the tests panel show up normally
  2. now, change file name example_test.py to example.test.py and the settings above to "*.test.py", all tests are gone.
  3. also tried "*\.test.py", but no luck
@karthiknadig
Copy link
Member

Closing this as the user has filed same one in python repo. microsoft/vscode-python#22745

@karthiknadig karthiknadig closed this as not planned Won't fix, can't repro, duplicate, stale Jan 12, 2024
@microsoft microsoft locked and limited conversation to collaborators Jun 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants