mfridman / tparse

CLI tool for summarizing go test output. Pipe friendly. CI/CD friendly.
MIT License
948 stars 22 forks source link

Add color support for `-progress` output #98

Open mfridman opened 1 year ago

mfridman commented 1 year ago

Picking up from https://github.com/mfridman/tparse/pull/95#issuecomment-1580742021, let's add color support to the package -progress output.

Outside the scope of this PR, but as we flush out the functionality of -progress, we should also consider adding artificial output periodically.

From https://github.com/mfridman/tparse/issues/86#issuecomment-1566407250:

For these cases, I think a solution may be to add a -periodic flag which can be set to an arbitrary duration 1m and it'll guarantee to output something to inform CI that tests are still running. Maybe this could default to 1m when -progress is true. This is similar to what https://github.com/hashicorp/terraform/pull/6163 does.

Instead of another flag, maybe -progress could just output something on an interval by default.