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 report #291

Open
scordio opened this issue Jul 11, 2021 · 6 comments
Open

Markdown report #291

scordio opened this issue Jul 11, 2021 · 6 comments

Comments

@scordio
Copy link
Contributor

scordio commented Jul 11, 2021

I would like to use japicmp to provide automated feedback to pull requests about binary compatibility.

Currently, I plan to add a comment to pull requests using the diff-like output.
However, I like more the HTML visual impact so I tried some tools to have an automated conversion from HTML to Markdown, but the result is not that great. Also, embedding the HTML report directly in a comment does not work due to unsupported tags.

Would you be willing to add a Markdown report with layout and content similar to the HTML one?

If you like the idea, I can try to raise a PR about it.

@siom79
Copy link
Owner

siom79 commented Jul 12, 2021

Have you seen the groovy plugin support here? You can write a groovy script that creates a Markdown report.

On the other hand, I would merge a Markdown report if you want to implement that.

@scordio
Copy link
Contributor Author

scordio commented Jul 12, 2021

Thanks, I didn't think about using the groovy support for that purpose. I think the effort for the script might be comparable to a native implementation, so I'll probably raise a PR for it.

Is it ok to rely on an existing library for Markdown generation, bringing that in as a new dependency?

@siom79
Copy link
Owner

siom79 commented Jul 15, 2021 via email

@scordio
Copy link
Contributor Author

scordio commented Aug 12, 2021

I started looking into the necessary changes. Would you suggest adding the Markdown generation to XmlOutputGenerator (which is currently taking care of both the XML and the HTML reports), or would it be better to create a new MarkdownOutputGenerator?

I tend to favor the former as the Markdown structure would mimic the HTML one, but I'm not sure that XmlOutputGenerator would still be a good name for that class.

@siom79
Copy link
Owner

siom79 commented Aug 12, 2021 via email

@scordio
Copy link
Contributor Author

scordio commented May 22, 2022

Although I'm still behind with this one (almost one year later 😄), this is also a good fit with the new job summary feature of GitHub actions.

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