pytest_html_merger icon indicating copy to clipboard operation
pytest_html_merger copied to clipboard

How to preserve custom environment variables after report merging

Open leichin opened this issue 1 year ago • 1 comments

Hello, I've included custom environment variables in the report. However, after merging the reports, the environment variables seem to vanish in the merged report. Is there a way to retain the environment variables I set in the individual reports after merging?

Here's how I add the environment variables to a separate report in the test case:

metadata_values = {'api_version':api_version, 'app_date':app_date}
request.config.stash[metadata_key]["version"] = metadata_values

Thank you!

leichin avatar Feb 15 '24 07:02 leichin