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
  I have created a bot in python but getting issue in element selection domic33 0 454 Mar-16-2025, 01:55 PM
Last Post: domic33
  issue with multiprocessing in embeded python otaolafr 1 313 Mar-05-2025, 06:24 PM
Last Post: deanhystad
  app funcionality issue jacksfrustration 4 871 Feb-05-2025, 06:47 PM
Last Post: jacksfrustration
  Bright Black Screen Issue in Tkinter GUI Application rommy 2 989 Nov-29-2024, 10:50 PM
Last Post: woooee
  White Screen Issue with Toolbar After Python Installation evelynfreya 2 1,022 Nov-25-2024, 06:26 PM
Last Post: deanhystad
  python3.9 auto_ossec issue jwdvd 2 814 Nov-18-2024, 09:56 AM
Last Post: jwdvd
Photo the python using issue,please help to check what is wrong with it Beginner_ 1 724 Nov-13-2024, 06:53 PM
Last Post: deanhystad
  Python install issue redreign83 2 807 Oct-04-2024, 07:59 AM
Last Post: Larz60+
  Shared memory issue Lchunleo 0 631 Sep-06-2024, 05:21 AM
Last Post: Lchunleo
Thumbs Up How to analyze a 300ms delay issue in VLLM SkyLee 1 637 Aug-28-2024, 07:07 AM
Last Post: SkyLee

Forum Jump:

User Panel Messages

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