An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# bitbucket_code_coverage

[![Build Status](https://github.com/arturdm/bitbucket_code_coverage/workflows/ci/badge.svg?branch=master)](https://github.com/arturdm/bitbucket_code_coverage/actions)
[![codecov](https://codecov.io/gh/arturdm/bitbucket_code_coverage/branch/master/graph/badge.svg)](https://codecov.io/gh/arturdm/bitbucket_code_coverage)
[![Pub](https://img.shields.io/pub/v/bitbucket_code_coverage.svg)](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