Permalink
Browse files

Add CircleCI badge, CodeClimate coverage reporting, and CodeClimate b…

…adge.

* Also update Simplecov for an important bugfix
  • Loading branch information...
schneidmaster committed Aug 23, 2015
1 parent 61ee8eb commit d985d8cbe578d563730c2f8dd897198a45e71810
Showing with 17 additions and 8 deletions.
  1. +2 −1 Gemfile
  2. +9 −6 Gemfile.lock
  3. +3 −0 README.md
  4. +3 −1 spec/spec_helper.rb
@@ -41,10 +41,11 @@ gem 'bcrypt', '~> 3.1.7'
group :test do
gem 'capybara', '~> 2.3.0'
gem 'capybara-screenshot', '~> 0.3.19'
gem 'codeclimate-test-reporter', require: false
gem 'database_cleaner', '~> 1.3.0'
gem 'factory_girl_rails', '~> 4.4.1'
gem 'faker', '~> 1.3.0'
gem 'poltergeist', '~> 1.5.0'
gem 'rspec-rails', '~> 2.14.1'
gem 'simplecov', '~> 0.8.2'
gem 'simplecov', '~> 0.9'
end
@@ -41,6 +41,8 @@ GEM
capybara (>= 1.0, < 3)
launchy
cliver (0.3.2)
codeclimate-test-reporter (0.4.7)
simplecov (>= 0.7.1, < 1.0.0)
coffee-rails (4.0.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.0)
@@ -77,7 +79,7 @@ GEM
mime-types (1.25.1)
mini_portile (0.6.0)
minitest (5.4.1)
multi_json (1.10.1)
multi_json (1.11.2)
nokogiri (1.6.2.1)
mini_portile (= 0.6.0)
poltergeist (1.5.1)
@@ -128,11 +130,11 @@ GEM
sdoc (0.4.1)
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
simplecov (0.8.2)
simplecov (0.10.0)
docile (~> 1.1.0)
multi_json
simplecov-html (~> 0.8.0)
simplecov-html (0.8.0)
json (~> 1.8)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.0)
spring (1.1.3)
sprockets (2.11.0)
hike (~> 1.2)
@@ -168,6 +170,7 @@ DEPENDENCIES
bcrypt (~> 3.1.7)
capybara (~> 2.3.0)
capybara-screenshot (~> 0.3.19)
codeclimate-test-reporter
coffee-rails (~> 4.0.0)
database_cleaner (~> 1.3.0)
factory_girl_rails (~> 4.4.1)
@@ -179,7 +182,7 @@ DEPENDENCIES
rspec-rails (~> 2.14.1)
sass-rails (~> 4.0.3)
sdoc (~> 0.4.0)
simplecov (~> 0.8.2)
simplecov (~> 0.9)
spring
sqlite3
turbolinks
@@ -1,3 +1,6 @@
[![Circle CI](https://circleci.com/gh/schneidmaster/rspec-blog-example.svg?style=svg)](https://circleci.com/gh/schneidmaster/rspec-blog-example)
[![Test Coverage](https://codeclimate.com/github/schneidmaster/rspec-blog-example/badges/coverage.svg)](https://codeclimate.com/github/schneidmaster/rspec-blog-example/coverage)
# rspec blog example
Rails blog application to show example code for my [series](https://schneid.io/blog/writing-tests-for-rails-introduction) on writing tests on rspec. Initial commit is a basic Rails blog application derived from the Rails [Getting Started tutorial](http://guides.rubyonrails.org/getting_started.html). Second commit is a basic user/password authentication system. Subsequent commits are example code corresponding with blog posts.
@@ -7,6 +7,7 @@
require 'capybara-screenshot/rspec'
require 'capybara/poltergeist'
require 'simplecov'
require 'codeclimate-test-reporter'
# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
@@ -17,7 +18,8 @@
ActiveRecord::Migration.maintain_test_schema!
# Generate coverage report
SimpleCov.start
SimpleCov.formatter = CodeClimate::TestReporter::Formatter if ENV['CIRCLE_ARTIFACTS']
SimpleCov.start 'rails'
RSpec.configure do |config|
# ## Mock Framework

0 comments on commit d985d8c

Please sign in to comment.