Skip to content

feat: support icons in testname format#516

Open
kdkasad wants to merge 2 commits into
gotestyourself:mainfrom
kdkasad:testname-icons
Open

feat: support icons in testname format#516
kdkasad wants to merge 2 commits into
gotestyourself:mainfrom
kdkasad:testname-icons

Conversation

@kdkasad
Copy link
Copy Markdown

@kdkasad kdkasad commented Aug 1, 2025

Adds support for --format-icons when using --format testname.

Notable points:

  • The default icons are now used if none are specified, rather than text like before. This matches the documentation.
  • Two spaces are used between the icon and the package name, just like in the pkgname format. This applies even when the text icons are used, as it seems unwise to add more fragile edge cases.
  • Empty packages use the skip icon instead of the pass icon, matching previous behavior.
    • For the text icons only, EMPTY is used instead of SKIP in this case, again matching previous behavior.

Unit tests have been updated/added as appropriate to guarantee the above points are accurate.

The github-actions format is unchanged; it required some refactoring to separate from the testname format but the behavior stays the same.

Closes #399.

Comment thread testjson/format.go
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

Successfully merging this pull request may close these issues.

why does the testname format does not support icons?

2 participants