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

Add a -f/--format option to change the format of the badges #6

Open
smarie opened this issue May 11, 2021 · 3 comments
Open

Add a -f/--format option to change the format of the badges #6

smarie opened this issue May 11, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@smarie
Copy link
Owner

smarie commented May 11, 2021

No description provided.

@smarie smarie added the enhancement New feature or request label May 11, 2021
@smarie
Copy link
Owner Author

smarie commented May 17, 2021

I see several alternatives for the "tests" badge

  • by default 'auto' format: display the number of tests only if 100% success, otherwise display xxx/yyy
  • alternate format 1: display the success percentage

@smarie smarie changed the title Add a -f/--format option to change the format of the tests badge Add a -f/--format option to change the format of the badges Jun 22, 2021
@smarie
Copy link
Owner Author

smarie commented Jun 22, 2021

For the coverage badge is could be a format string for the coverage float, such as '%.2f' ? See #16

@hejcman
Copy link

hejcman commented Aug 3, 2021

Hi! I would also find it useful to be able to modify the title of the badge.
Something along the lines of genbadge [flake8|coverage|tests] --title "Alternative Title".

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

No branches or pull requests

2 participants