Add browser version to pytest-html report

355 views Asked by At

I get browser version from command line argument but can't add it to report :(

conftest.py:

import pytest


def pytest_addoption(parser):
    parser.addoption("--browser-version")

def pytest_html_report_title(report):
    report.title = "need browser version string here"
0

There are 0 answers