Skip to content

The paramters in main function doesn't work #10095

Answered by nickma1204
nickma1204 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@nickma1204
Comment options

Comment options

You must be logged in to vote
1 reply
@RonnyPfannschmidt
Comment options

Answer selected by nickma1204
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants