Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

appfolio/minitest_rollbar

Repository files navigation

MinitestRollbar

minitest_rollbar is a gem to log test exceptions to rollbar. This is useful in a CI environment to gather statistics on common exceptions that could indicate infrastructer related issues.

Installation

Add this line to your application's Gemfile:

  gem 'minitest_rollbar'

And then execute:

  $ bundle install

Or install it yourself as:

  $ gem install minitest_rollbar

Usage

Require necessary files in the test_helper:

  require 'minitest_rollbar'

Get a reporter with access_token and ssl policy using:

  MinitestRollbar::RollbarReporter.new(rollbar_config: { verify_ssl_peer: false, access_token: 'whatever' })

By default, occurrences are grouped by string and returned by exception.inspect (Concatenate exception class name and message). We generate a fingerprint for that. To use rollbar's default grouping algorithm use:

  MinitestRollbar.use_default_grouping = true

License

This gem is available under the MIT License.

  • Copyright (c), 2016-2020, AppFolio, Inc.

About

Log exceptions from minitest to rollbar.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages