Skip to content

JuanitoFatas/test-collector-buildkite-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test Collector Buildkite Plugin Build status

A Buildkite plugin for uploading JSON or JUnit files to Buildkite Test Analytics ✨

Example

Upload a JUnit file

To upload a JSON file to Test Analytics from a build step:

steps:
  - label: "🔨 Test"
    command: "make test"
    plugins:
      - test-collector#v1.0.0:
          files: "test/junit-*.xml"
          format: "junit"

Upload a JSON file

To upload a JSON file to Test Analytics from a build step:

steps:
  - label: "🔨 Test"
    command: "make test"
    plugins:
      - test-collector#v1.0.0:
          files: "test-data-*.json"
          format: "json"

Properties

  • files — Required — String — Pattern of files to upload to Test Analytics
  • format — Required — String — Format of the file. Possible values: "junit", "json"
  • api-token-env-name — Optional — String — Name of the environment variable that contains the Test Analytics API token. Default value: "BUILDKITE_ANALYTICS_TOKEN"
  • timeout — Optional — Number — Maximum number of seconds to wait for each file to upload before timing out. Default value: 30
  • debug — Optional — Boolean — Print debug information to the build output. Default value: false. Can also be enabled with the environment variable BUILDKITE_ANALYTICS_DEBUG_ENABLED.

âš’ Developing

You can use the bk cli to run the whole pipeline locally, or just the tests using Docker Compose directly:

docker-compose run --rm tests

👩‍💻 Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/buildkite-plugins/test-collector-buildkite-plugin

đź“ś License

The package is available as open source under the terms of the MIT License.

About

🔍 Upload JSON or JUnit files to Buildkite Test Analytics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%