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 does not work with error. #7141

Closed
zhouwangyang opened this issue Aug 29, 2019 · 2 comments
Closed

Pytest does not work with error. #7141

zhouwangyang opened this issue Aug 29, 2019 · 2 comments
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@zhouwangyang
Copy link

Environment data

VS Code version: 1.38-insider
Extension version (available under the Extensions sidebar): python 2019.9.33413-rc

Expected behaviour

Tests are discovered (as shown by code lenses on each test) and run successfully.

Actual behaviour

An error happened
Error: TypeError: cannot read property '$' of undefined
image

Steps to reproduce:

  1. Open folder pytests in VSC
  2. Create test.py and tyiping code:
    def test_passing():
    assert 42==42
    def test_failure():
    assert 42==-13
  3. pytest installed in current environment.
    4.Run command: "Run All Tests", ensure:
    a. Click "Enable and configure a test framework"
    b. Select "pytest" and next ". Root directory"

repro steps:
pytest.zip

@zhouwangyang zhouwangyang added triage-needed Needs assignment to the proper sub-team bug Issue identified by VS Code Team member as probable bug labels Aug 29, 2019
@Flamefire
Copy link

See #6990

@ericsnowcurrently
Copy link
Member

This is a duplicate of #6990.

@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Aug 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

3 participants