PyCharm debugger with Pytest results in ERROR: usage: pytest.py [options] [file_or_dir] [file_or_dir] [...]

I raised this as a bug when I meant to put it here first.

 

I am getting the following following error when trying to use the debugger:

PyCharm debugger with Pytest results in ERROR: usage: pytest.py [options] [file_or_dir] [file_or_dir] [...]

I am using Pytest and running normally with this command on a class, which contains several tests.

C:\automation\framework\venv\Scripts\python.exe -m pytest -v --junitxml=../../report.xml C:/automation/framework/qa_selenium_framework/tests/test_app.py

this works fine, but when I try it in debug though which runs

C:\automation\framework\venv\Scripts\python.exe -m pytest -v --junitxml=../../report.xml "C:\Program Files\JetBrains\PyCharm 2019.2\helpers\pydev\pydevd.py" --multiproc --qt-support=auto --client 127.0.0.1 --port 13043 --file C:/automation/framework/qa_selenium_framework/tests/test_app.py

I get

ERROR: usage: pytest.py [options] [file_or_dir] [file_or_dir] [...]
pytest.py: error: unrecognized arguments: --multiproc --qt-support=auto --client 127.0.0.1 --port 13043 --file C:/automation/framework/qa_selenium_framework/tests/test_app.py
  inifile: C:\Program Files\JetBrains\PyCharm 2019.2\helpers\pydev\pytest.ini
  rootdir: C:\Program Files\JetBrains\PyCharm 2019.2\helpers\pydev

I do not have pytest coverage or the coverage plugin installed, so I'm unsure what the problem here is?

 

Thanks :)

1
1 comment
Avatar
Permanently deleted user

@... did you resolve this?

0

Please sign in to leave a comment.