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

Test discovery and runner should use the test config #7581

Closed
karthiknadig opened this issue Sep 24, 2019 · 2 comments
Closed

Test discovery and runner should use the test config #7581

karthiknadig opened this issue Sep 24, 2019 · 2 comments
Assignees
Labels
feature-request Request for new features or functionality

Comments

@karthiknadig
Copy link
Member

Suppose I have a module that i am including via pythonpath. Currently i can debug that by passing env via debug configuration. I should be able to provide similar configuration for tests.

        {
            "name": "Test Config",
            "type": "python",
            "request": "test",
            "env":{
                "PYTHONPATH": "${workspaceFolder}/mymodule"
            }
        }

With this folder structure:
image

You can run or debug. But test discovery/running does not work.,

@karthiknadig karthiknadig added feature-request Request for new features or functionality triage-needed Needs assignment to the proper sub-team labels Sep 24, 2019
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Sep 24, 2019
@DonJayamanne
Copy link

DonJayamanne commented Sep 25, 2019

The test discovery and runner should already use the .env file.
If not this is a regression, there's a similar issue that I'm tracking (triaging), possibly related and possibly a regression (not using .env files when discovering and running tests).

@DonJayamanne
Copy link

Duplicate of #7581
Related to PYTHONPATH in env variables

@ghost ghost removed the triage label Sep 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

4 participants