Skip to content

output from TestMain is silently swallowed in GitHub Actions #542

@josharian

Description

@josharian

I have important logging to stderr in TestMain that triggers only in rare scenarios.

But gotestsum silently changes formats in CI to a format that doesn't display any output from TestMain, only from the tests that it triggers.

This has caused...quite a lot of confusion and wasted time.

I would like to suggest that output from TestMain in GitHub Actions be grouped under a TestMain heading and made visible.

Given the many hours I've lost to this, I'm motivated to try my hand at a PR, if one would be welcome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions