You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Discover all unit tests correctly with no problems as long as pythonFiles/testing_tools/run_adapter.py returns the correct JSON data
Actual behaviour
While discovering, the loading machinery instantiates some dynamic libraries (DLLs) that output to the standard output. Apparently, run_adapter.py tries to capture all the output as the JSON object rather than the relevant return from pytest.
Steps to reproduce:
Create a C/C++ DLL that writes to stdout on load
Create a Python SWIG wrapper for that DLL
Write a pytest unittest that uses the SWIG wrapper
Test discovery fails
Logs
Output for Python Test Log in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python Test log)
python c:\<private path>\ms-python.python-2019.10.44104\pythonFiles\testing_tools\run_adapter.py discover pytest -- -s -n 4 <private project>
Test Discovery failed:
SyntaxError: Unexpected token E in JSON at position 23851
The text was updated successfully, but these errors were encountered:
Environment data
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version #3977): N/AExpected behaviour
Discover all unit tests correctly with no problems as long as pythonFiles/testing_tools/run_adapter.py returns the correct JSON data
Actual behaviour
While discovering, the loading machinery instantiates some dynamic libraries (DLLs) that output to the standard output. Apparently, run_adapter.py tries to capture all the output as the JSON object rather than the relevant return from pytest.
Steps to reproduce:
Logs
Output for
Python Test Log
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython Test log
)The text was updated successfully, but these errors were encountered: