bazelbuild / rules_go

Go rules for Bazel
Apache License 2.0
1.37k stars 649 forks source link

Running Ginkgo tests in parallel #3542

Open gzcharleszhang opened 1 year ago

gzcharleszhang commented 1 year ago

Is there a way to run Ginkgo tests in parallel using the go_test rule? According to the Ginkgo doc, 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.

gabrielrussoc commented 1 year ago

Related issue https://github.com/onsi/ginkgo/issues/800

Maybe we could expose some flag to go_test that invokes the ginkgo cli?