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

add print of the failed tests at the end of the list #5

Closed aronrichter closed 2 years ago

aronrichter commented 2 years ago

When I started using this lib on some projects with many tests, it became hard to see which tests go wrong. Because of that, this PR is a suggestion to print those errors, by using split-errors flag, at the end of the list as the print below.

image

bitfield commented 2 years ago

Thanks, @aronrichter! gotestdox isn't really intended to be a test runner, in the same sense as gotestsum, for example. Its job is essentially to explain your own tests to you as sentences.

If some of those tests are failing, then yes, something is very wrong, but that's not gotestdox's problem. It exits with a failure exit status if any tests fail, so that a CI step running gotestdox will terminate, but that's the extent of its concern with failing tests.