kondratyev-nv / vscode-python-test-adapter

Python Test Adapter for the VS Code Test Explorer
https://marketplace.visualstudio.com/items?itemName=LittleFoxTeam.vscode-python-test-adapter
MIT License
117 stars 27 forks source link

Test run status is not updated if conftest.py file is present while using pytest. #239

Closed saurabh-c-rai closed 3 years ago

saurabh-c-rai commented 3 years ago

Issue Type: Bug

Open the project in vscode. Download the dependencies mentioned in the pyproject.toml file. Run the test present in the tests folder.

Expected : Test should run and the status of the test should be reflected on the test method or under the test explorer. (The red highlight feature when test fails) Actual : Test runs but status is not reflected either on the test method or under the Test Explorers making it verify difficult to verify if the test has passed or failed.

Extension version: 0.6.8 VS Code version: Code 1.55.2 (3c4e3df9e89829dce27b7b5c24508306b151f30d, 2021-04-13T09:35:57.887Z) OS version: Windows_NT x64 10.0.18363

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2592)| |GPU Status|2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|31.70GB (21.59GB free)| |Process Argv|C:\\Users\\raisau\\ProjectSetup\\PersonalProjects\\pytest-test-runner-check --crash-reporter-id 37738ec1-7bb2-47bf-9c84-6f6b2d519645| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vstry244:30276681 pythonvspyt639:30291489 pythontb:30283811 vspre833cf:30267465 pythonptprofiler:30281270 vshan820:30294714 pythondataviewer:30285071 vscus158:30286553 vscgsv2ct:30294353 ```

Here's a sample project using which I can reproduce this issue. pytest-test-runner-check.zip

Please let me know if you need any more info.