I'm trying to run following simple test cases using pycharm, when I ran those test cases I see output
Process finished with exit code 0
instead pass/fail.
Test Case I was running :
import pytest from pytest1 import can_p1 msg=0 @pytest.fixture(scope = "module") def msgFraming(): print ("I'm inside FIXTURE") nchannel = 686 FuncID = 144 opType = 8 FuncID = FuncID * 2 msg = nchannel+FuncID+opType return msg def test_cansendMsg(msgFraming): res= can_p1.canMsgsend(msg) assert res == msg def test_canrecvMsg(msgFraming): res = can_p1.canMdgrcv(msg) assert res == msg I have edited settings in IDE as follows:
1) file -> settings -> tools -> python integrated tools -> set default as py.test
when I ran other programs(other than pytest) I can see o/p.


test..., what do you see when you right-click on the file tab ? "Run file" or "Run py.test in file" ?