Converts coverage data from LCOV and publishes to Bitbucket server with Bitbucket Server Code Coverage Plugin installed.
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