Add code coverage to tests

This commit is contained in:
Alexander Meindl
2017-06-28 15:21:30 +02:00
parent b37759d850
commit a68e3a2fb1

View File

@@ -2,6 +2,18 @@
require File.expand_path(File.dirname(__FILE__) + '/../../../test/test_helper')
require 'simplecov'
require 'simplecov-rcov'
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::RcovFormatter
]
SimpleCov.start :rails do
root File.expand_path(File.dirname(__FILE__) + '/..')
end
module RedmineMessenger
class TestCase
include ActionDispatch::TestProcess