Skip to content

Unrecognized argument running pytest with plugin from executable file #10186

Answered by nicoddemus
sush1q asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @sush1q,

Try this:

...
import allure_pytest.plugin

pytest.main(["-s", src.__path__[0], "--alluredir=./allure_results"], plugins=[allure_pytest.plugin])

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@nicoddemus
Comment options

@nicoddemus
Comment options

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