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

Feature request: task/debugger variables for current module.class.method #3552

Closed
bhrutledge opened this issue Dec 4, 2018 · 1 comment
Closed

Comments

@bhrutledge
Copy link

Environment data

  • VS Code version: 1.29.1
  • Extension version: 2018.11.0
  • OS and version: macOS 10.13.6
  • Python version: 2.7.15
  • Type of virtual environment used: virtualenv

This is related to #73, because in absence of a configuration option for discovering and running specific Django tests via manage.py test, I just run them from the command line, by typing or pasting something like my_app.tests.ModelTestCase.test_model_method.

To run a test in the debugger, I edit launch.json each time I switch tests, e.g.:

        {
            "name": "Django Test",
            "type": "python",
            "request": "launch",
            "program": "${workspaceFolder}/manage.py",
            "args": [
                "test",
                "--keepdb",
                "--failfast",
                "my_app.tests.ModelTestCase.test_model_method"
            ],
            "django": true
        },

I was thinking variable substition might allow me to write generic tasks and debugger configs for testing.

See also #3551.

Thanks for considering this, and your work on this extension.

@DonJayamanne
Copy link

What you're proposing is a work around for #73.
Let's focus on fixing that as opposed to adding work around.
Hence closing in favour of #73

@lock lock bot locked as resolved and limited conversation to collaborators Jan 1, 2019
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

2 participants