bazelbuild / bazel-gazelle

Gazelle is a Bazel build file generator for Bazel projects. It natively supports Go and protobuf, and it may be extended to support new languages and custom rule sets.
Apache License 2.0
1.18k stars 374 forks source link

testtools for ginkgo (and benchmark) #1407

Open holyhope opened 1 year ago

holyhope commented 1 year ago

As a developer, I would like to test my custom bazelle lang that I wrote thanks to language.Language package.

I found the /testtools package that may help me. The testtool package is only compatible with testing.T whereas I would like to use ginkgo.

I suggest to open the compatibility of testtools to ginkgo, but also benchmark tests (testing.B).

What version of gazelle are you using?

v0.27.0

What version of rules_go are you using?

v0.37.0

What version of Bazel are you using?

v5.2.0

Does this issue reproduce with the latest releases of all the above?

Yes

holyhope commented 1 year ago

The more I try to use that, the more I would like a tests framework for gazelle language. My first suggestion does not seems to be the right solution.

wdyt?