go-test-report icon indicating copy to clipboard operation
go-test-report copied to clipboard

Add support for testdox display names

Open afbjorklund opened this issue 1 year ago • 1 comments

Make it possible to show test names as sentences:

https://bitfieldconsulting.com/golang/test-names

                                }
+                               if flags.testdox {
+                                       status.DisplayName = gotestdox.Prettify(status.TestName)
+                               }
                                allTests[key] = status

https://github.com/bitfield/gotestdox

  • TestValidIsFalseForInvalidInput => Valid is false for invalid input

  • TestValidIsTrueForValidInput => Valid is true for valid input

afbjorklund avatar Aug 28 '23 11:08 afbjorklund