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

Create simple CPAN Testers badge #20

Open
preaction opened this issue Jun 19, 2018 · 4 comments
Open

Create simple CPAN Testers badge #20

preaction opened this issue Jun 19, 2018 · 4 comments

Comments

@preaction
Copy link
Member

We should expose badges for distributions to show off their status in CPAN Testers. We should create a new controller, CPAN::Testers::Web::Controller::Badge with a method pass_badge that creates an SVG image showing the percentage of reports that are PASS compared with the total PASS and FAIL. If the PASS percentage is above 90, the badge should be green. If it's below 90 and above 50, it should be yellow. If it is below 50, it should be red.

The dist and version should be provided in the URL. If the version is not provided, we should use the latest version of the dist.

@haukex
Copy link

haukex commented Nov 10, 2018

I recently released Badge::Simple (haukex/Badge-Simple), which generates SVG badges, maybe it can help?

@preaction
Copy link
Member Author

@haukex: Yes, that looks perfect!

@haukex
Copy link

haukex commented Nov 11, 2018

Cool! What could I do to help? Just for example, here's how I patched it into CPANTS: cpants/www-cpants@92e7a28. I'm not sure what the best approach for cpantesters.org would be...

@preaction
Copy link
Member Author

The main description of the ticket presents a possible solution: A new controller which will serve badges by dist and version (defaulting to latest non-dev version). It would need automated tests.

Once we have that, we can start adding it to places (like a blurb on http://beta.cpantesters.org)

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