Repository is archived
No commit activity in last 3 years
No release in over 3 years
A minitest reporter that logs test exceptions to Rollbar.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

>= 2, < 4
 Project Readme

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.