No commit activity in last 3 years
No release in over 3 years
Reporter and module for Spinach that sends message to Slack
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 1.0
~> 0.27
~> 10.0
~> 0.33

Runtime

 Project Readme

Spinach::Slack::Reportable

Adds support for sending Spinach test failure to Slack

Installation

Add this line to your application's Gemfile:

gem 'spinach-slack-reportable'

And then execute:

$ bundle

Or install it yourself as:

$ gem install spinach-slack-reportable

Usage

First, set the following environment variables

SPINACH_SLACK_WEBHOOK_URL=https://hooks.slack.com/services/your/slack/webhook
SPINACH_SLACK_CHANNEL=your-slack-channel
SPINACH_SLACK_USERNAME=user-to-post-to-slack-as

Use the built in SpinachSlackReporter with spinach -r spinach_slack_reporter, or use in your own spinach reporter by adding prepend SpinachSlackReportable.

For example:

# If not using rails,
# require 'spinach/reporter/spinach_slack_reportable'

module Spinach
  class Reporter
    class MySpinachReporter < Reporter
      include Reporting
      prepend SpinachSlackReportable
      ...
    end
  end
end

Contributing

  1. Fork it ( https://github.com/crazydog115/spinach-slack-reportable/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request