gotestyourself / gotestsum

'go test' runner with output optimized for humans, JUnit XML for CI integration, and a summary of the test results.
Apache License 2.0
2.04k stars 121 forks source link

GitHub actions format #315

Closed dnephin closed 1 year ago

dnephin commented 1 year ago

Use https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#grouping-log-lines to collapse sections of the output.

laurentsenta commented 1 year ago

👋 joining in from https://github.com/protocol/.github/issues/563

Apart from the failing expectations in CI, are there any big hurdles to getting this released?

dnephin commented 1 year ago

Hello! I think this should be ready to go. The test failure is easy to fix, I've left it in so we have an example of a failing test in the output.

I pushed one bug fix and a couple small changes to the output:

How does this look to you?

dnephin commented 1 year ago

I changed the default back to pkgname, but I switched to use github-actions format if format=testname. Those formats should be similar enough that no one will be upset the format changed slightly.

I'm happy with this so I'll merge it. If you have any suggestions I'll be waiting a couple weeks to tag a new release. We can always make changes before the release.