Project

look_out

0.0
No commit activity in last 3 years
No release in over 3 years
In charge of the observation of the code for hazards.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0
>= 0
>= 0

Runtime

 Project Readme

Look Out

In charge of the observation of the code for hazards.

Installation

Add this line to your application's Gemfile:

group :development, :test do
    gem 'look_out', require: false
end

And then initialize:

# spec/spec_helper.rb

require 'look_out'
LookOut.configure do |config|
  config.api_key = '123'
  config.user = `git config user.name`.chomp
end

Add to your .rspec


--require 'look_out/rspec/look_out_formatter'
--format LookOut::RSpec::LookOutFormatter

# Make sure you have a formatter after this one in your .rspec or there will
# be no output from your spec suite. For example:

--format doc

# or

--format progress

VCR

If you're using VCR it may raise an exception for an unexpected HTTP request. If so you can ignore it with:


VCR.configure do |config|
  ...
  config.ignore_hosts 'api.sea-aye.com'
  ...
end

Usage

Run specs just like normal!

If you're running your specs against merged code you can force reporting for the correct sha by setting a special environment variable.

export GIT_COMMIT_SHA='the-real-sha-aavvcc'

Contributing

Bug reports and pull requests are welcome!