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

Pytest --cov argument breaks IDE debuggers #28

Open
1 of 3 tasks
brynpickering opened this issue Apr 22, 2024 · 0 comments
Open
1 of 3 tasks

Pytest --cov argument breaks IDE debuggers #28

brynpickering opened this issue Apr 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@brynpickering
Copy link
Collaborator

What happened?

See: microsoft/vscode-python#693

We could solve this by adding our own .vscode/launch.json file (and equivalent for PyCharm / Spyder?).

In VSCode:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Current File",
            "type": "debugpy",
            "request": "launch",
            "program": "${file}",
            "purpose": ["debug-test"],
            "console": "integratedTerminal",
            "justMyCode": true,
            "env": {
                "PYTEST_ADDOPTS": "--no-cov"
            }
        }
    ]
}

I don't use the integrated IDE debugger usually, so would be good to get perspectives on the config setup from others that do (@KasiaKoz @Theodore-Chatziioannou, please tag others!).

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

Version

v0.2.0

Relevant log output

No response

@brynpickering brynpickering added the bug Something isn't working label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant