Skip to content

v1.0.0

Compare
Choose a tag to compare
@JuanitoFatas JuanitoFatas released this 10 Jun 06:40
· 266 commits to main since this release
9f4e811

🎂

Upgrading to v1.0.0

v1.0.0 contains some breaking changes. It also adds support for Logging.

What's New

This release has breaking changes.

  • We renamed the gem to Buildkite::TestCollector from RSpec::Buildkite::Analytics.
  • Supports Rails >= 5.2, < 8
  • Tokens will be read from ENV["BUILDKITE_ANALYTICS_TOKEN"] automatically. Please set it securely (link to Buildkite for example) on your CI environment.
  • Added Logging support
  • Added Minitest support

Upgrade

  • Change this at your Gemfile

    gem "buildkite-test_collector", "< 2"
  • Make changes described below

  • Run your tests and fix any error

File location changes

Change the require statement of the gem:

- require "rspec/buildkite/analytics"
+ require "buildkite/test_collector"

API Changes

RSpec::Buildkite::Analytics replaced by Buildkite::TestCollector:

Buildkite::TestCollector.configure(hook: :rspec)

and replace all occurrences of RSpec::Buildkite::Analytics.annotate with Buildkite::TestCollector.annotate.

Logging Changes

Logging has been added. By default it emits warning from WARN level. Rails’s default log level is DEBUG in all environments. To silent logs from Buildkite::Collector, set the log level to ERROR.

Buildkite::TestCollector.logger.level = Logger::ERROR

Minitest Support

Buildkite::TestCollector.configure(hook: :minitest)