vscode-python: Python: Run Current Unit Test File throws error if junitxml argument is used

Issue Type: Bug

  1. Create a simple Pytest project and add argument “–junitxml=abc.xml”
  2. Run command Python: Run Current Unit Test File

Observed:

============================= test session starts =============================
platform win32 -- Python 3.7.0, pytest-3.7.1, py-1.5.4, pluggy-0.7.1
rootdir: d:\Working\simple_project, inifile: pytest.ini
plugins: metadata-1.7.0, html-1.19.0
collected 1 item

tests\test_simple_mapping.py .                                           [100%]

 generated xml file: d:\Working\simple_project\abc.xml 
========================== 1 passed in 0.05 seconds ===========================
Error: Error: ENOENT: no such file or directory, open 'D:\Dev_Tools\Microsoft VS Code\abc.xml'

Expected: No issue happen

Extension version: 2018.7.1 VS Code version: Code 1.26.0 (4e9361845dc28659923a300945f84731393e210d, 2018-08-13T16:29:31.933Z) OS version: Windows_NT x64 10.0.17134

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (5 by maintainers)

Most upvoted comments

I assume this works if you run this from the command-line with the same Python environment?

[ @trinhpham I edited your ✉️ ⬆️ to come off as more 😃 and less 😠 ]