Replies: 1 comment
-
I'm the author of neotest-golang and I've implemented dir/file/namespace/test where I've chosen to utilize namespaces for testify test suites only. But you can for example opt for only implementing support for You should be able to look at my I'm also leveraging If something's unclear there, don't hesitate to give me a ping! Also, I figured I'd just mention that there's a fairly new neotest bazel adapter here: https://github.com/sluongng/neotest-bazel And I'm also looking to support custom test runners in neotest-golang which would open up for adding a bazel runner, although one would also have to process the bazel output as it differs from the |
Beta Was this translation helpful? Give feedback.
-
I'm working on an adapter for bazel and encountering some awkwardness in mapping between Bazel's concept of a test and neotest's. Specifically there is a M:N relationship between Bazel test targets and files (as in: a single file may be part of multiple test targets and a single test target may exercise multiple files). Figuring out this relationship from Bazel is easy enough, but I'm struggling a bit in mapping this back to neotest. Specifically, how strict is the hierarchy of
dir > file > namespace > test
expected to be? I'd like to be able to "run" a test file, exercise the relevant test target(s) and report results despite those targets not really being within the file.To some extent, the test target is itself a test (or namespace) which may contain files which may additionally contain namespaces or tests, but I'm not sure how well that structure would be supported.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions