We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to set the report path from script (conftest.py). Please let me know the scripts for that so i can set --report=report.html from script.
The text was updated successfully, but these errors were encountered:
This is not possible at the moment, but you can copy the report to another location using the pytest_reporter_finish hook.
def pytest_reporter_finish(path, context, config): # Copy or move path to another location
Sorry, something went wrong.
Thanks for the response. Can you please help me to provide sample scripts..
I think you can change report path in this hook. Add below in your conftest.py
def pytest_reporter_context(context, config): config.option.report[0] = config.option.report[0].replace('.html', str(datetime.datetime.now().strftime( "%Y-%m-%d-%H-%M-%S")) + '.html')
No branches or pull requests
I want to set the report path from script (conftest.py). Please let me know the scripts for that so i can set --report=report.html from script.
The text was updated successfully, but these errors were encountered: