thombashi / pytest-md-report

A pytest plugin to generate test outcomes reports with markdown table format.
MIT License
33 stars 5 forks source link

Saving report into a file #1

Closed inikolaev closed 2 years ago

inikolaev commented 2 years ago

Is there an option that would allow to save report into the file?

thombashi commented 2 years ago

Thank you for your feedback.

You can use the following options at pytest-md-report 0.3.0 and later versions:

      --md-report-output=FILEPATH
                            path to a file that outputs test report.
                            overwrite a file content if the file already exists.
                            you can also specify the value with
                            PYTEST_MD_REPORT_OUTPUT environment variable.
      --md-report-tee       output test report for both standard output and a file.
                            you can also specify the value with PYTEST_MD_REPORT_TEE
                            environment variable.
jasonm23 commented 1 year ago

Please turn off color by default when creating a markdown report. @thombashi

thombashi commented 1 year ago

@jasonm23 Thank you for your feedback. I created an issue for that: #2