-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Customise AppVeyor Test 'passed', 'failed', 'skipped' status #1321
Conversation
Interesting idea, I would like to see a documentation for that in the |
One of the problems is that it's difficult to document what a badge has. There has been progress for improving registering services API (#963) which could allow for standarised documentation for badges. The query parameters introduced in this PR are specific to the AppVeyor test status badge. Thus, adding information to the parameters section at the bottom would be very misleading since it does not apply to other badges. |
Ohh, I thought you could customize any badge in the sense that it would replace given words with the selected characters! But undocumented or poorly documented features are always bad. A general availability of something like this would be cool, sure. |
Heh, that's new from last time I did a PR. will add what I can. cheers @tooomm |
Another way to document it would be an additional badge example. This also needs a test. Could you clarify why this is better than the standard text? Since a goal of the project is to provide consistent badges, we try to choose a good default and avoid providing customization options. Do you think we should change the standard text? Translation is one thing (all the badges are in English; only some of that can be overridden) but what you're wanting here is more like an alternate format. |
Regarding the mangled badges in development builds: Grab a copy of |
@NZSmartie with the font it works great! Thanks! |
@paulmelnikow This PR is an alternative way of displaying the AppVeyor test badge. Because other components of the badge can already be customised ( The main motivation is that badges can get very wide when all 3 metric labels (passed, failed and skipped) are displayed. Allowing use of single unicode helps free up screen space |
That makes sense to me. Another way we could go about this is to add a flag like What do you think about this tweak to the format? https://img.shields.io/badge/tests-%E2%9C%94%2012%20%20%E2%9D%8C%203%20%20%E2%9D%97%203-orange.svg I'm not sure if the ! is a clear way to convey skipped – it seems more like errored. I wonder if there is another symbol that might be more understandable. The x and ! characters don't look great on my machine because they display in red: |
service-tests/appveyor.js
Outdated
// Test AppVeyor tests status badge with emoji | ||
t.create('tests status with emoji labels') | ||
.get('/tests/NZSmartie/coap-net-iu0to.json?passed=%E2%9C%94&failed=%E2%9D%8C&skipped=%E2%9D%97') | ||
.expectJSONTypes(Joi.object().keys({ name: 'tests', value: isEmojiAppveyorTestTotals })); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests look great!
We could use the info unicode character |
I like the idea of a |
Does the information symbol convey skipped, though? Here are some other ideas: I'm rather partial to 6, which is the symbol for "escape." The "skip track" icon, 3, is clear in meaning, but doesn't look good. |
I quite like the tilde sign, as its pretty simple and gets the point across. |
The tilde is simple looking, though how does it convey "skipped"? |
If someone want's to use another symbol for skipped tests, they can use the |
In my opinion |
yup, that's exactly what it does |
the reason why the symbols are inconsistent on each platform as the browser will fallback onto another font on the host OS that supports that unicode range. A solution would be to include a second true type font that includes a standardised set of fonts. like Font Awesome for example |
How difficult would it be to embed a symbol (much like the brand logos) and use that for the ✔ ✘ and [skip symbol]? |
For the sake of consistency i think the only way will be to embed an svg image for the check, cross, and other symbol |
Where are you seeing that? I'm not seeing it in Chrome or Firefox. I'm fine with that. ^^ It feels slightly cramped but we could tweak the spacing later on. Another suggestion, riffing on the dot: midline horizontal ellipsis. Black flag: Circle with backslash: Warning sign: Rightward arrow to bar: Double question mark: |
@paulmelnikow have changed it to the full circle with horizontal bars. but the CI is failing due ot an error outside of my control. unless i need to merge with master? |
Yea, merging master into this branch should fix it. |
@RedSparr0w I think for now this will do and I'll see what I can do in regards to #127 / #552 to make it cleaner |
And/Or this:
By the way: Font Awesome includes icons for github, twitter, telegram, bitbucket, facebook, gitlab, gratipay, slack etc. too! They also have icons in solid and outlined style. |
After sleeping on it, I like rightward arrow to bar. Most of our suggestions have conveyed "maybe" or "indeterminate," but this one actually suggests skipping. These are different checks and X's. Arguably the badge more legible as the symbols are lighter so the numbers stand out more. How do they look on iOS? |
Is there some other thicker arrow available? This one is really hard to see at all! The dot is kinda bold next to the others, that's why I searched http://graphemica.com/search?q=arrow... |
This issue became stalled as there was disagreement on what icons/symbols to use for representing the various results. If a consensus is made, i'll be happy to pick it up again |
Okay, shall we try to push this forward again? We can always pick one solution, and change it later on if users dislike it. We could even create a poll in an separate issue to get feedback and some community interaction. @NZSmartie I'm keen on you making an informed final call based on the discussions above. Quite a few things have changed with the Appveyor service, in particular in #1743, but I'm sure @paulmelnikow will be glad to assist you if you run into any trouble! How does that sound? 😄 |
IMHO, since the icons can customize, it doesn't matter a whole lot which one you pick as a default. Any one is better than nothing at this point. And, if someone dislikes them, they can just customize it via the URL itself, so, no blocking issues ;) |
I can pick this up after #1940 is merged. |
Reopened at #2000. |
This is to allow users to display text in their own language, or (in my case) unicode characters. For example:
would show the following badge
