The paramters in main function doesn't work #10095
-
I'm trying to setup a pytest demo and insert some paramter in main function, however the paratmeres '-s' or test case selected parameters doesn't work, could you please help to find out where the problem is?
We can see from the result ,both of them is excuted and no string is printed out
here is my pytest version info
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
What's the command you're running now? |
Beta Was this translation helpful? Give feedback.
-
Eventually I found the root cause. |
Beta Was this translation helpful? Give feedback.
Eventually I found the root cause.
when I click the run button next to the main, it run default 'Run python test for test....', this will run all the test under this module and ignore whatever I insert in the pytest.main().
If in menu bar, I click Run->Run->test_case.py to navigate to my test case module, it will run with the args in main.