bitfield / gotestdox

A tool for formatting Go test results as readable documentation
https://bitfieldconsulting.com/golang/test-names
MIT License
114 stars 4 forks source link

Sort output alphabetically #6

Closed thiagonache closed 2 years ago

thiagonache commented 2 years ago

Hi there,

I'd like to see the output of gotestdox ordered alphabetically without losing the beautiful colors in the output. Could you make it default via code so I can stop using | sort, please? If you don't want to have to buffer the output to make sort possible by default, an argument would be good enough.

bitfield commented 2 years ago

I'd like this too. The reason I didn't do it originally was that I wanted to be able to print test results as they come in, rather than waiting until they're all complete and then printing the sorted list.

But, to be honest, I think sorting is more important than result streaming. Let's do it!

bitfield commented 2 years ago

(If we sort results per-package, we can also be more intelligent about grouping those results by package.)