Categorygithub.com/buildpulse/test-reporter
module
0.28.0
Repository: https://github.com/buildpulse/test-reporter.git
Documentation: pkg.go.dev

# README

BuildPulse Test Reporter MIT license

The BuildPulse test reporter is a binary that connects your continuous integration (CI) to buildpulse.io to help you detect, track, and eliminate flaky tests.

Get started at buildpulse.io.

Setup

Install goreleaser to build

brew install goreleaser/tap/goreleaser upx

Build

The following will build the binary.

./script/build-snapshot

The binary can be found in ./dist. The following platforms + architectures are supported:

  • Darwin / Mac OS (amd64, arm64)
  • Windows (amd64)
  • Linux (amd64, arm64)
    • Ubuntu
    • Debian
    • Fedora
    • CentOS
    • RedHat
    • Alpine

Natively Supported CI Providers

We are able to infer the required environment variables from the following CI providers:

  • Github Actions
  • BuildKit
  • CircleCI
  • Github Actions
  • Jenkins
  • Semaphore
  • Travis CI
  • Webapp.io
  • AWS CodeBuild
  • BitBucket Pipelines
  • Azure DevOps Pipelines

Other CI Providers / Standalone Usage

To use test-reporter with another CI provider, the following environment variables must be set:

Environment VariableDescription
GIT_COMMITGit commit SHA
GIT_BRANCHGit branch of the build, or PR number
BUILD_URLURL of the build. If running locally, set as https://example.com
ORGANIZATION_NAMEName of the Github organization
REPOSITORY_NAMEName of the repository

The following are flags that can be set. Make sure to set flags after CLI args.

FlagRequiredDescription
account-idBuildPulse account ID (see dashboard)
repository-idBuildPulse repository ID (see dashboard)
repository-dirOnly if tree not setPath to repository directory
treeOnly if repository-dir not setGit tree SHA
coverage-filesOnly if using BuildPulse CoverageSpace-separated paths to coverage files.
tagsSpace-separated tags to apply to the build.

Example:

BUILDPULSE_ACCESS_KEY_ID=$INPUT_KEY \
BUILDPULSE_SECRET_ACCESS_KEY=$INPUT_SECRET \
GIT_COMMIT=$GIT_COMMIT \
GIT_BRANCH=$GIT_BRANCH \
BUILD_URL=$BUILD_URL \
ORGANIZATION_NAME=$ORGANIZATION_NAME \
REPOSITORY_NAME=$REPOSITORY_NAME \
./buildpulse-test-reporter submit $REPORT_PATH --account-id $ACCOUNT_ID --repository-id $REPOSITORY_ID --repository-dir $REPOSITORY_PATH

# Packages

No description provided by the author