Skip to content

add CLI arg value if not present (--junitxml) #8997

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

You must be logged in to vote

Hi @choppsv1,

The internal JUnitXML plugin also checks the options in pytest_configure:

def pytest_configure(config: Config) -> None:
xmlpath = config.option.xmlpath

Given that external plugins execute first, and then internal ones, your pytest_configure() should be able to set config.option.xmlpath before junitxml plugin gets to it. Perhaps you are setting config.option.junitxml (after the command-line argument)?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@RonnyPfannschmidt
Comment options

@choppsv1
Comment options

@nicoddemus
Comment options

Answer selected by choppsv1
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