Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand user and env vars on configured report path #91

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amartani
Copy link

@amartani amartani commented Jul 31, 2023

Expand environment variables ($FOO) and user dirs (~/) passed in --json-report-file.

In particular, this is useful in cases where these are configured via config files (eg. pytest.ini) rather than being passed in directly in the command line. It also matches the behavior of --junitxml on pytest itself:

https://github.com/pytest-dev/pytest/blob/485c555812286003d9234b5818c9852c3256bccb/src/_pytest/junitxml.py#L475

And other similar plugins such as pytest-html:

https://github.com/pytest-dev/pytest-html/blob/8bc9a5d89b53a417c90645233597d0b506793d13/src/pytest_html/basereport.py#L22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant