bazel-contrib / bazel-contrib/rules_go
Running Ginkgo tests in parallel
- Dominant language
- Go
- Stars
- 1.5k
- Forks
- 762
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 12
Description
Is there a way to run [Ginkgo](https://onsi.github.io/ginkgo/) tests in parallel using the `go_test` rule? According to the [Ginkgo doc](https://onsi.github.io/ginkgo/), you need to run the ginkgo CLI with the `-p` flag in order to run tests in parallel. From my understanding, `go_test` uses `go test` binary and can only run parallel tests using the `testing` package but not Ginkgo. I have tried passing in `args = ["-ginkgo.parallel.total 2"]` in `go_test`, but it still executes Ginkgo tests sequentially.
Contributor guide
Research direction
Start with the rules_go go_test rule and its handling of go test arguments, then compare that behavior with the Ginkgo documentation and CLI -p requirement. Verify how the reported -ginkgo.parallel.total argument is passed and determine what configuration or rule support would be needed for parallel Ginkgo execution; done means a reproducible parallel test run through go_test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- build-system, testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100