Python Forum
pytest binary issue and pycharm issue
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pytest binary issue and pycharm issue
#1
Hello,
I am working on unix and using:
python/3.7.2/rh60_64
pycharm/2018.1.4/rh60_64

I have just installed pytest-5.4.2 and made it available though PYTHONPATH variable.
Through a test class on PyCharm I can, it seems sucessfully import pytest and for example use pytest.global_testName = ""

First, I do not have the py.tets binary in my unix environement, how to add it ? Then I have an issue within PyCharm, as described below.

Previoulsy I was using unitest as test runner, I would like to switch to py.test.
I tried to update PyCHarm settings and Run configurations as follow, without any success:
File/Settings/Tools/Python Integrated tools, I specified as "Defaut test runner" py.test, then OK.
PyCharm display a warning: No pytest runner found in selected interpreted
then:
Run/EditConfigurations/Defaults/Python tests/ I select py.test with "Custom" Target, then OK.

When I go to the testClass I have implemented, on the left side of the editor window, I can see "run py.test for ..." I execute that and the console simply displays, and it does not launch the test:

/sw/freetools/python/3.7.2/rh60_64/bin/python3.7 /prj/mms_nvm/cad_prj/python/users/paolipie/python/workdev/tests/com_st_envm_envmUtils/test_envmUtils.py

Process finished with exit code 0


I precise I cnanot use the pip installer, I have to download a python release package from windows then copy it into unix.

thanks a lot for any help,
Pierre
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Installation issue C425Driver 1 67 Feb-12-2026, 06:51 AM
Last Post: DeaD_EyE
  [solved] re.split issue paul18fr 10 1,087 Nov-14-2025, 06:02 PM
Last Post: deanhystad
  [solved] regex issue paul18fr 3 612 Oct-19-2025, 11:21 PM
Last Post: Pedroski55
  IBKR Purchasing code issue compuman145 0 1,454 Sep-23-2025, 09:08 AM
Last Post: compuman145
  RemoTe server operation with Paramiko issue mario17 6 1,847 Jul-14-2025, 10:14 AM
Last Post: snippsat
  [Python] Issue of Adding Single and Bulk Vouchers to UserMan Aymen 0 789 May-10-2025, 06:39 PM
Last Post: Aymen
  White Screen Issue with Toolbar After Python Installation evelynfreya 3 2,340 Apr-30-2025, 06:43 AM
Last Post: encore
  Selenium Select Option Issue webimdad 0 916 Apr-23-2025, 12:26 PM
Last Post: webimdad
  I have created a bot in python but getting issue in element selection domic33 0 842 Mar-16-2025, 01:55 PM
Last Post: domic33
  issue with multiprocessing in embeded python otaolafr 1 889 Mar-05-2025, 06:24 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020