thombashi / pytest-md-report

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

Table header missing #9

Closed rixx closed 4 months ago

rixx commented 4 months ago

I tried running pytest-md-report in a GitHub workflow, and the resulting table didn't have a header, which breaks table rendering. Example workflow

thombashi commented 4 months ago

@rixx As far as I have tried, the output report of pytest-md-report to a job summary in a GitHub workflow looks fine. md-report_job-summary

I think tail -n+2 is the cause of the missing of the table header: https://github.com/pretalx/pretalx/blob/5acd81fe545670d81b87aa7ea0760b6368bb4223/.github/workflows/tests.yml#L107 What happens if you simply cat the report file?

rixx commented 4 months ago

oh yeah, sorry, that's on me – I had copied that from documentation of another tool elsewhere, and just … failed to use my brain. Sorry to bother you!