arturdm / bitbucket_code_coverage

Converts coverage data from LCOV and publishes to Bitbucket server

Home Page:https://bitbucket.org/atlassian/bitbucket-code-coverage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bitbucket_code_coverage

Build Status codecov Pub

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.

dev_dependencies:
  bitbucket_code_coverage: ^0.0.2

Run the executable for a single coverage file.

pub run bitbucket_code_coverage \
  --url http://localhost:7990 \
  -u <username> \
  -p <password> \
  post \
  -c <commit_id> \
  -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.

pub run bitbucket_code_coverage \
    --url http://localhost:7990 \
    -t <personal_access_token> \
    post \
    -c <commit_id> \
    --file-pattern **/lcov.info

About

Converts coverage data from LCOV and publishes to Bitbucket server

https://bitbucket.org/atlassian/bitbucket-code-coverage

License:Apache License 2.0


Languages

Language:Dart 100.0%