{"id":21301715,"url":"https://github.com/funbox/simplecov-bitbucket-server","last_synced_at":"2025-07-11T20:31:16.845Z","repository":{"id":50118886,"uuid":"346057078","full_name":"funbox/simplecov-bitbucket-server","owner":"funbox","description":"Uploads test coverage data to Bitbucket Server via Code Coverage plugin","archived":false,"fork":false,"pushed_at":"2021-06-04T10:24:21.000Z","size":13,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-29T08:02:47.584Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/funbox.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-09T15:41:42.000Z","updated_at":"2021-12-16T00:05:25.000Z","dependencies_parsed_at":"2022-09-23T14:00:01.960Z","dependency_job_id":null,"html_url":"https://github.com/funbox/simplecov-bitbucket-server","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/funbox/simplecov-bitbucket-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funbox%2Fsimplecov-bitbucket-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funbox%2Fsimplecov-bitbucket-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funbox%2Fsimplecov-bitbucket-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funbox%2Fsimplecov-bitbucket-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/funbox","download_url":"https://codeload.github.com/funbox/simplecov-bitbucket-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funbox%2Fsimplecov-bitbucket-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264892156,"owners_count":23679241,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-21T15:50:30.721Z","updated_at":"2025-07-11T20:31:11.832Z","avatar_url":"https://github.com/funbox.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SimpleCov to Bitbucket Server\n\n[![Gem Version](https://img.shields.io/gem/v/simplecov-bitbucket-server.svg)](https://rubygems.org/gems/simplecov-bitbucket-server)\n[![Travis CI](https://img.shields.io/travis/com/funbox/simplecov-bitbucket-server.svg)](https://travis-ci.com/github/funbox/simplecov-bitbucket-server)\n[![Coveralls](https://img.shields.io/coveralls/funbox/simplecov-bitbucket-server.svg)](https://coveralls.io/github/funbox/simplecov-bitbucket-server)\n\nA [SimpleCov](https://rubygems.org/gems/simplecov) formatter that uploads coverage data to a Bitbucket Server instance via [Code Coverage](https://marketplace.atlassian.com/apps/1218271/code-coverage-for-bitbucket-server) plugin.\n\n## Installation\n\n```ruby\n# Gemfile\n\ngroup :test do\n  gem 'simplecov-bitbucket-server', '~\u003e 1.0'\nend\n\n\n# spec/spec_helper.rb\n\nrequire 'simplecov/formatter/bitbucket_server'\n\nSimpleCov.formatter = SimpleCov::Formatter::BitbucketServer.new('https://your.bitbucket.host')\n```\n\n## Usage\n\nRun your test suite as usual. At the end SimpleCov will run the formatter. The formatter will post data to the server.\n\n### Commit SHA\n\nCoverage data is uploaded for a certain commit. This commit is the tip of the branch from which the pull request is created. The formatter takes the commit SHA from an environment variable called `GIT_COMMIT` (set by Jenkins).\n\nIf you need to pass the commit SHA from some other source, pass it as the second argument to the formatter's constructor. For example:\n\n```ruby\ncommit = ENV['TRAVIS_COMMIT']\n\nSimpleCov.formatter = SimpleCov::Formatter::BitbucketServer.new('https://your.bitbucket.host', commit)\n```\n\n[![Sponsored by FunBox](https://funbox.ru/badges/sponsored_by_funbox_centered.svg)](https://funbox.ru)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunbox%2Fsimplecov-bitbucket-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunbox%2Fsimplecov-bitbucket-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunbox%2Fsimplecov-bitbucket-server/lists"}