/buildpulse-circleci-orb

CircleCI Orb for connecting to BuildPulse for flaky test detection

Primary LanguageShellMIT LicenseMIT

BuildPulse CircleCI Orb CircleCI Orb Version GitHub license

Easily connect your CircleCI jobs to BuildPulse to help you find and fix flaky tests.

Usage

See this orb's listing in CircleCI's Orbs Registry for details on usage, or see the example below.

Example

In this example config.yml snippet, after your tests run, the buildpulse/upload command sends the test results to BuildPulse for analysis.

version: 2.1

orbs:
  buildpulse: workshop64/buildpulse@x.y

jobs:
  build:
    docker:
      - image: circleci/<some-docker-image>

    steps:
      - checkout

      - run: echo "Run your tests and generate XML reports for your test results"

      - buildpulse/upload:
          account-id: 123 
          repository-id: 123
          path: ./spec/reports
          access-key-id: BUILDPULSE_ACCESS_KEY_ID
          secret-access-key: BUILDPULSE_SECRET_ACCESS_KEY
          path: test/reports # path to JUnit XML file
          account-id: <buildpulse-account-id>
          repository-id: <buildpulse-repository-id>
          coverage-files: ./coverage/lcov/project.lcov # optional
          tags: tag1 tag2 tag3 # optional

workflows:
  version: 2
  commit:
    jobs:
      - build