Skip to content
New issue

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

Markdown reporter #1549

Open
ianchanning opened this issue Feb 22, 2024 · 1 comment
Open

Markdown reporter #1549

ianchanning opened this issue Feb 22, 2024 · 1 comment

Comments

@ianchanning
Copy link

ianchanning commented Feb 22, 2024

Is there an explicit markdown reporter? The text reporter is close, but has an intial row that doesn't get included in the table and it is missing the outside | and so doesn't quite work if you output the text in a Github PR comment.

Link to bug demonstration repository

N/A

Expected Behavior

| File                      | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s              |
| ------------------------- | ------- | -------- | ------- | ------- | ------------------------------ |
| All files                 |    62.6 |    29.06 |      66 |   61.91 |                                |

GitHub output:

File % Stmts % Branch % Funcs % Lines Uncovered Line #s
All files 62.6 29.06 66 61.91

Observed Behavior

--------------------------|---------|----------|---------|---------|--------------------------------
File                      | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s              
--------------------------|---------|----------|---------|---------|--------------------------------
All files                 |    62.6 |    29.06 |      66 |   61.91 |                                

GitHub output:

--------------------------|---------|----------|---------|---------|--------------------------------

File % Stmts % Branch % Funcs % Lines Uncovered Line #s
All files 62.6 29.06 66 61.91

Troubleshooting steps

The main proble is the initinal row. Even though the rest of the table isn't a strictly formatted table, it does get formatted.

Environment Information

N/A
@BboyAkers
Copy link
Contributor

Hmmm I'll take a crack at this! 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants