https://github.com/arturdm/bitbucket_code_coverage
Converts coverage data from LCOV and publishes to Bitbucket server
https://github.com/arturdm/bitbucket_code_coverage
bitbucket-server code-coverage dartlang hacktoberfest
Last synced: about 1 year ago
JSON representation
Converts coverage data from LCOV and publishes to Bitbucket server
- Host: GitHub
- URL: https://github.com/arturdm/bitbucket_code_coverage
- Owner: arturdm
- License: apache-2.0
- Created: 2019-03-03T23:18:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-10-09T07:31:15.000Z (almost 6 years ago)
- Last Synced: 2025-05-09T00:39:17.107Z (about 1 year ago)
- Topics: bitbucket-server, code-coverage, dartlang, hacktoberfest
- Language: Dart
- Homepage: https://bitbucket.org/atlassian/bitbucket-code-coverage
- Size: 38.1 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# bitbucket_code_coverage
[](https://github.com/arturdm/bitbucket_code_coverage/actions)
[](https://codecov.io/gh/arturdm/bitbucket_code_coverage)
[](https://pub.dartlang.org/packages/bitbucket_code_coverage)
Converts coverage data from LCOV and publishes to Bitbucket server with
[Bitbucket Server Code Coverage Plugin] installed.
## Usage
Add `bitbucket_code_coverage` to `dev_dependencies`.
```yaml
dev_dependencies:
bitbucket_code_coverage: ^0.0.2
```
Run the executable for a single coverage file.
```bash
pub run bitbucket_code_coverage \
--url http://localhost:7990 \
-u \
-p \
post \
-c \
-f build/lcov.info
```
In order to publish data from multiple coverage files use `--file-pattern` option. If you would
like to use [Personal Access Token] you can do so by passing it to `-t` option.
```bash
pub run bitbucket_code_coverage \
--url http://localhost:7990 \
-t \
post \
-c \
--file-pattern **/lcov.info
```
[Bitbucket Server Code Coverage Plugin]: https://bitbucket.org/atlassian/bitbucket-code-coverage
[Personal Access Token]: https://confluence.atlassian.com/bitbucketserver/personal-access-tokens-939515499.html