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

Python unittest runner doesn't respect arguments to pass to unittest runner #20425

Open
Alex-EEE opened this issue Dec 22, 2022 · 2 comments
Open
Assignees
Labels
area-testing bug Issue identified by VS Code Team member as probable bug

Comments

@Alex-EEE
Copy link

Repro:

Go into settings, put a bogus arg into settings (note --silly)

    "python.testing.unittestArgs": [
        "-v",
        "-s",
        "./py-unit-tests",
        "-p",
        "test*.py",
        "-b",
        "--silly"
    ],

Now run tests. They still run, even though this is invalid!!!

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Dec 22, 2022
@eleanorjboyd
Copy link
Member

Hello! We believe this issue will be fixed in the rewrite we are doing on both pytest and unittests types. The meta-issue is here. I will attach your issue in the meta issue but will also keep this issue open pending the fix. Thanks

@eleanorjboyd eleanorjboyd added area-testing bug Issue identified by VS Code Team member as probable bug and removed triage-needed Needs assignment to the proper sub-team labels Jan 6, 2023
@eleanorjboyd
Copy link
Member

tried this and still exists after re-write. Will need to investigate further

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
Projects
None yet
Development

No branches or pull requests

2 participants