Test Explorer + Coverage for Bazel tests in VS Code.
Uses bazel query, bazel test, and bazel coverage, integrated with the VS Code Testing API.
- Show tests in the Testing view (query + run).
- CodeLens, gutter markers, diagnostics.
- Coverage reports in the Testing UI.
- Test Details panel (incl. Coverage tab).
- Advanced Bazel test settings.
- Install the extension from the VS Code Marketplace.
- Ensure Bazel is installed.
- Open Testing.
- Run tests or Coverage from the UI.
bazelTestExplorer.testTypes- e.g.cc_test,rust_test,py_test,go_test.bazelTestExplorer.queryPaths-//...or specific paths.bazelTestExplorer.testArgs- extra flags forbazel test.bazelTestExplorer.coverageArgs- extra flags forbazel coverage.
c++filt/rustfiltshould be available inPATHfor demangled names in coverage.--instrumentation_filter=.*can be slow in large repositories. This can be changed in settings.- Experimental test.xml parsing can be slow or incompatible with some frameworks.
MIT License
