Skip to content

Add support for setting --junitxml output via JUNITXML_DIR environment variable v1.18#2094

Merged
regisss merged 1 commit into
huggingface:v1.18-releasefrom
HabanaAI:gplutop7_enalble_junitxml_1_18
Jul 1, 2025
Merged

Add support for setting --junitxml output via JUNITXML_DIR environment variable v1.18#2094
regisss merged 1 commit into
huggingface:v1.18-releasefrom
HabanaAI:gplutop7_enalble_junitxml_1_18

Conversation

@gplutop7
Copy link
Copy Markdown
Collaborator

@gplutop7 gplutop7 commented Jul 1, 2025

This PR adds support for automatically setting the --junitxml output path based on the environment variable JUNITXML_DIR if it is not explicitly provided via command-line options.

Behavior

If --junitxml is explicitly passed → no change in behavior.
If --junitxml is not provided but JUNITXML_DIR is set → the test result will be written to JUNITXML_DIR/result_.xml.
If neither is provided → no XML report is generated (default behavior remains unchanged).
Motivation
This change enables dynamic and automated control of test result locations in CI environments (e.g., Jenkins pipelines) without needing to explicitly pass --junitxml to pytest.

@gplutop7 gplutop7 requested a review from regisss as a code owner July 1, 2025 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants