Skip to content

-o makes ginkgo behave weirdly #1582

@zhulik

Description

@zhulik

Hi!

I have a project with lots of nested packages tested with ginkgo, I run tests in the repository root as

go tool ginkgo -r -p -o /tmp/tests.out

I've noticed that tests for some of the packages are just skipped and if I go directly to their directories and run go test or go tool ginkgo run there, I see failed tests while running all the tests in the project root with the command above shows no errors at all.

I also noticed that removing -o /tmp/tests.out makes ginkgo act correctly. If I remove it, I see the failed tests when running the tests from the repo root.

This issue already led to merging a few PRs with failing tests in the project as CI simply didn't see them. It should be either forbidden to use -o with ginkgo if it's not supported correctly or it should be fixed.

Versions:

  • Go: 1.24.3
  • Ginkgo: 2.33.4, installed as a go tool.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions