add code climdate test coverage
This commit is contained in:
parent
ea48856bb9
commit
f58696a063
|
@ -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"
|
||||
|
|
1
Gemfile
1
Gemfile
|
@ -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
|
||||
|
|
|
@ -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 协议, 自由使用.
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue