add code climdate test coverage

This commit is contained in:
yafeilee 2014-07-17 21:04:53 +08:00
parent ea48856bb9
commit f58696a063
4 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,8 @@ language: ruby
bundler_args: '--without production'
script: CODECLIMATE_REPO_TOKEN=7d6b988f58234bf1560305412d10d9530902beebdbe2fb938b6a934f1d352578 bundle exec rake
before_install:
- "cat /etc/timezone"
- "grep -i processor /proc/cpuinfo | wc -l"

View File

@ -46,6 +46,7 @@ group :test do
gem 'mongoid-rspec', :require => false
gem 'database_cleaner'
gem 'rspec-sidekiq'
gem "codeclimate-test-reporter", group: :test, require: nil
end
group :test, :development do

View File

@ -2,6 +2,7 @@ WBlog
=======
[![Build Status](https://travis-ci.org/windy/wblog.svg?branch=master)](https://travis-ci.org/windy/wblog)
[![Code Climate](https://codeclimate.com/github/windy/wblog.png)](https://codeclimate.com/github/windy/wblog)
[![Test Coverage](https://codeclimate.com/github/windy/wblog/coverage.png)](https://codeclimate.com/github/windy/wblog)
为移动而生的 Ruby on Rails 开源博客. WBlog 基于 MIT 协议, 自由使用.

View File

@ -1,5 +1,7 @@
# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test'
require "codeclimate-test-reporter"
CodeClimate::TestReporter.start
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
require 'rspec/autorun'