mirror of
http://ghproxy.cn/https://github.com/multunus/onemdm-server
synced 2025-12-06 02:04:57 +00:00
Add SimpleCov for coverage as per the latest the CodeClimate requirement
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -17,3 +17,5 @@
|
|||||||
/tmp
|
/tmp
|
||||||
|
|
||||||
/config/database.yml
|
/config/database.yml
|
||||||
|
|
||||||
|
/coverage
|
||||||
|
|||||||
6
Gemfile
6
Gemfile
@@ -43,7 +43,11 @@ group :development, :test do
|
|||||||
gem 'factory_girl_rails'
|
gem 'factory_girl_rails'
|
||||||
gem 'shoulda-matchers'
|
gem 'shoulda-matchers'
|
||||||
end
|
end
|
||||||
gem "codeclimate-test-reporter", group: :test, require: nil
|
|
||||||
|
group :test do
|
||||||
|
gem "simplecov"
|
||||||
|
gem "codeclimate-test-reporter", "~> 1.0.0"
|
||||||
|
end
|
||||||
|
|
||||||
group :development do
|
group :development do
|
||||||
# Access an IRB console on exception pages or by using <%= console %> in views
|
# Access an IRB console on exception pages or by using <%= console %> in views
|
||||||
|
|||||||
@@ -65,8 +65,8 @@ GEM
|
|||||||
thor (~> 0.19)
|
thor (~> 0.19)
|
||||||
builder (3.2.2)
|
builder (3.2.2)
|
||||||
byebug (6.0.2)
|
byebug (6.0.2)
|
||||||
codeclimate-test-reporter (0.4.8)
|
codeclimate-test-reporter (1.0.3)
|
||||||
simplecov (>= 0.7.1, < 1.0.0)
|
simplecov
|
||||||
coffee-rails (4.1.0)
|
coffee-rails (4.1.0)
|
||||||
coffee-script (>= 2.2.0)
|
coffee-script (>= 2.2.0)
|
||||||
railties (>= 4.0.0, < 5.0)
|
railties (>= 4.0.0, < 5.0)
|
||||||
@@ -250,7 +250,7 @@ PLATFORMS
|
|||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
activeadmin!
|
activeadmin!
|
||||||
byebug
|
byebug
|
||||||
codeclimate-test-reporter
|
codeclimate-test-reporter (~> 1.0.0)
|
||||||
coffee-rails (~> 4.1.0)
|
coffee-rails (~> 4.1.0)
|
||||||
devise
|
devise
|
||||||
factory_girl_rails
|
factory_girl_rails
|
||||||
@@ -265,6 +265,7 @@ DEPENDENCIES
|
|||||||
sass-rails (~> 5.0)
|
sass-rails (~> 5.0)
|
||||||
sdoc (~> 0.4.0)
|
sdoc (~> 0.4.0)
|
||||||
shoulda-matchers
|
shoulda-matchers
|
||||||
|
simplecov
|
||||||
spring
|
spring
|
||||||
therubyracer
|
therubyracer
|
||||||
turbolinks
|
turbolinks
|
||||||
@@ -272,4 +273,4 @@ DEPENDENCIES
|
|||||||
web-console (~> 2.0)
|
web-console (~> 2.0)
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
1.10.6
|
1.13.7
|
||||||
|
|||||||
@@ -17,7 +17,9 @@
|
|||||||
#
|
#
|
||||||
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
||||||
require "codeclimate-test-reporter"
|
require "codeclimate-test-reporter"
|
||||||
CodeClimate::TestReporter.start
|
require "simplecov"
|
||||||
|
|
||||||
|
SimpleCov.start
|
||||||
|
|
||||||
RSpec.configure do |config|
|
RSpec.configure do |config|
|
||||||
# rspec-expectations config goes here. You can use an alternate
|
# rspec-expectations config goes here. You can use an alternate
|
||||||
|
|||||||
Reference in New Issue
Block a user