Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hchauvin/bazel-coverage-report
**NOT MAINTAINED** A multi-language coverage report generator for Bazel
https://github.com/hchauvin/bazel-coverage-report
Last synced: 3 months ago
JSON representation
**NOT MAINTAINED** A multi-language coverage report generator for Bazel
- Host: GitHub
- URL: https://github.com/hchauvin/bazel-coverage-report
- Owner: hchauvin
- License: apache-2.0
- Archived: true
- Created: 2018-04-17T19:51:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-05T08:11:18.000Z (almost 5 years ago)
- Last Synced: 2024-07-31T07:15:44.022Z (6 months ago)
- Language: Starlark
- Homepage: https://hchauvin.github.io/bazel-coverage-report/index.html
- Size: 690 KB
- Stars: 21
- Watchers: 2
- Forks: 27
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-bazel - hchauvin/bazel-coverage-report - A multi-language coverage report generator for Bazel (Tooling / General)
README
# `bazel-coverage-report`
**Not maintained: Please look at forks instead!**
[![Build Status](https://travis-ci.org/hchauvin/bazel-coverage-report.svg?branch=master)](https://travis-ci.org/hchauvin/bazel-coverage-report)
`bazel-coverage-report` is a multi-language coverage report generator for
[Bazel](https://bazel.build). It is based on [genhtml](https://github.com/linux-test-project/lcov.git).See the [example report](https://hchauvin.github.io/bazel-coverage-report/index.html) generated
for the `//test/...` targets.Bug reports and feature requests are welcome.
## Usage
In your WORKSPACE:
```python
git_repository(
name = "hchauvin_bazel_coverage_report",
remote = "https://github.com/hchauvin/bazel-coverage-report.git",
commit = "{HEAD}",
)
load("@hchauvin_bazel_coverage_report//report:defs.bzl", "bazel_coverage_report_repositories")
bazel_coverage_report_repositories() # lcov, ...
```Then:
1. Generate coverage data with `bazel coverage //your/targets/... --instrumentation_filter=<...>`
2. Build the coverage report generator: `bazel build @hchauvin_bazel_coverage_report//report:bin`
3. Generate the report: `bazel-bin/external/hchauvin_bazel_coverage_report/report/bin --dest_dir=`## Supported languages
- C, C++
- Golang
- Javascript, Typescript
- Java, Kotlin
- RSee [`./WORKSPACE`](./WORKSPACE) for the version of the rules that are supported. Some of
these versions are pending Push Requests.