mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
move coverage to ci rake task
This commit is contained in:
parent
ae11f09d2f
commit
406eb47db7
4 changed files with 17 additions and 26 deletions
|
|
@ -4,14 +4,6 @@
|
|||
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
|
||||
# files.
|
||||
|
||||
# test coverage from codeclimate
|
||||
require "codeclimate-test-reporter"
|
||||
CodeClimate::TestReporter.start
|
||||
|
||||
# local test coverage
|
||||
require 'simplecov'
|
||||
SimpleCov.start 'rails'
|
||||
|
||||
require 'cucumber/rails'
|
||||
require 'aruba/cucumber'
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1,16 @@
|
|||
task :ci => ['db:migrate', :test, :cucumber]
|
||||
task :ci do |t|
|
||||
ENV['RAILS_ENV'] ||= "test"
|
||||
|
||||
# test coverage from codeclimate
|
||||
require "codeclimate-test-reporter"
|
||||
CodeClimate::TestReporter.start
|
||||
|
||||
# local test coverage
|
||||
require 'simplecov'
|
||||
SimpleCov.start 'rails'
|
||||
|
||||
[:environment, 'db:migrate', 'test:all', 'cucumber'].each do |t|
|
||||
print "running '#{t}'\n"
|
||||
Rake::Task[t].invoke
|
||||
end
|
||||
end
|
||||
|
|
@ -1,12 +1,4 @@
|
|||
# test coverage from codeclimate
|
||||
require "codeclimate-test-reporter"
|
||||
CodeClimate::TestReporter.start
|
||||
|
||||
# local test coverage
|
||||
require 'simplecov'
|
||||
SimpleCov.start 'rails'
|
||||
|
||||
ENV["RAILS_ENV"] = "test"
|
||||
ENV["RAILS_ENV"] ||= "test"
|
||||
require 'test/unit'
|
||||
require 'mocha/setup'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,13 +1,5 @@
|
|||
ENV["RAILS_ENV"] ||= "test"
|
||||
|
||||
# test coverage from codeclimate
|
||||
require "codeclimate-test-reporter"
|
||||
CodeClimate::TestReporter.start
|
||||
|
||||
# local test coverage
|
||||
require 'simplecov'
|
||||
SimpleCov.start 'rails'
|
||||
|
||||
require File.expand_path('../../config/environment', __FILE__)
|
||||
require 'rails/test_help'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue