Skip to content

vscode can't discover tests that use pytest-describe #19202

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

Closed
felipecrp opened this issue May 28, 2022 · 1 comment
Closed

vscode can't discover tests that use pytest-describe #19202

felipecrp opened this issue May 28, 2022 · 1 comment
Assignees
Labels
area-testing bug Issue identified by VS Code Team member as probable bug triage-needed Needs assignment to the proper sub-team

Comments

@felipecrp
Copy link

Issue Type: Bug

Behaviour

pytests works through command line but does not detect any tests on vscode.

Expected vs. Actual

vscode should detect the tests writen using pytest and pytest-describe, but it actually does not detect.

Steps to reproduce:

  1. Install pytest and pytest-describe plugin
  2. Create a test using the following structure.
def describe_calc():
    def it_calc():
        pass

Diagnostic data

  • Python version: 3.10.4
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): pipenv
  • Value of the python.languageServer setting: Default

Extension version: 2022.6.2
VS Code version: Code 1.67.2 (c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5, 2022-05-17T18:23:40.286Z)
OS version: Linux x64 5.10.106-15290-g6e9d70c8a9b4
Restricted Mode: No

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i3-1115G4 @ 3.00GHz (4 x 2995)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) 0, 0, 0
Memory (System) 6.49GB (6.46GB free)
Process Argv . --crash-reporter-id 57b64625-c985-4556-820e-55ae40a01594
Screen Reader no
VM 100%
DESKTOP_SESSION undefined
XDG_CURRENT_DESKTOP X-Generic
XDG_SESSION_DESKTOP undefined
XDG_SESSION_TYPE undefined
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30443607
pythontb:30283811
pythonvspyt551cf:30345471
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805cf:30301675
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
pythonvsnew555:30457759
vscscmwlcmt:30465135
cppdebug:30492333
vsclangdf:30486550

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label May 28, 2022
@karthiknadig karthiknadig added bug Issue identified by VS Code Team member as probable bug area-testing labels May 31, 2022
@kimadeline
Copy link

Duplicate of #16852 (see comment), will be addressed as part of #17242

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-testing bug Issue identified by VS Code Team member as probable bug triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

3 participants