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

Backslashes doesn't work when specifying the paths with python.testing.unittestArgs #11670

Open
karrtikr opened this issue May 7, 2020 · 2 comments
Assignees
Labels
area-testing bug Issue identified by VS Code Team member as probable bug needs PR Ready to be worked on

Comments

@karrtikr
Copy link

karrtikr commented May 7, 2020

The following discovers the tests,

  "python.testing.unittestArgs": [
    "-v",
    "-s",
    "C:/Users/karraj/Desktop/Desktop/test_demo/src",
    "-p",
    "*test*.py"
  ],

whereas

  "python.testing.unittestArgs": [
    "-v",
    "-s",
    "C:\\Users\\karraj\\Desktop\\Desktop\\test_demo\\src",
    "-p",
    "*test*.py"
  ],

doesn't.

@karrtikr karrtikr added bug Issue identified by VS Code Team member as probable bug needs PR area-testing triage-needed Needs assignment to the proper sub-team labels May 7, 2020
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label May 7, 2020
@github-actions github-actions bot removed the needs PR label Aug 9, 2022
@karrtikr karrtikr added the needs PR Ready to be worked on label Aug 9, 2022
@eleanorjboyd eleanorjboyd self-assigned this Dec 4, 2023
@eleanorjboyd
Copy link
Member

@karthiknadig and @karrtikr, thinking one of you could help here. Is the issue that this file path formatting is not supported and on windows it should be supported? What is the step to fix this here, do I have to pass the paths as different types of evaluate them before sending them to pytest?

@karthiknadig
Copy link
Member

@eleanorjboyd This might just be a case of using pathlib to process the path and generate the string that works for unittest. We can talk about this in more detail when you work on this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-testing bug Issue identified by VS Code Team member as probable bug needs PR Ready to be worked on
Projects
None yet
Development

No branches or pull requests

3 participants