From c466e08be06a1bbe685c3d29737b7ee4c337a7f6 Mon Sep 17 00:00:00 2001 From: Azeem Sajid Date: Sat, 15 May 2021 12:33:45 +0500 Subject: [PATCH] Add test coverage --- fluent-plugin-json.gemspec | 1 + test/helper.rb | 3 +++ 2 files changed, 4 insertions(+) diff --git a/fluent-plugin-json.gemspec b/fluent-plugin-json.gemspec index f55c24d..1b3bc91 100644 --- a/fluent-plugin-json.gemspec +++ b/fluent-plugin-json.gemspec @@ -25,6 +25,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'bundler', '~> 2.1', '>= 2.1.0' spec.add_development_dependency 'hana', '~> 1.3', '>= 1.3.6' spec.add_development_dependency 'rake', '~> 12.0' + spec.add_development_dependency 'simplecov', '~> 0.12', '<= 0.12.2' spec.add_development_dependency 'test-unit', '~> 3.0' spec.add_runtime_dependency 'fluentd', ['>= 0.14.10', '< 2'] spec.add_runtime_dependency 'hana', '~> 1.3', '>= 1.3.6' diff --git a/test/helper.rb b/test/helper.rb index 17e4a93..a8592a8 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -1,5 +1,8 @@ # frozen_string_literal: true +require 'simplecov' +SimpleCov.start + $LOAD_PATH.unshift(File.expand_path('..', __dir__)) require 'test-unit' require 'fluent/test'