From 2ba08364f98b9f4ae28bc9b3599766301d40772b Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Tue, 5 Mar 2024 20:29:47 +0300 Subject: [PATCH] #20 simplecov --- .gitignore | 1 + Gemfile | 1 + test/test__helper.rb | 30 ++++++++++++++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 test/test__helper.rb diff --git a/.gitignore b/.gitignore index b8a05ac..b17cd52 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ Gemfile.lock .DS_Store rdoc/ .idea/ +coverage/ \ No newline at end of file diff --git a/Gemfile b/Gemfile index 993099b..5962930 100644 --- a/Gemfile +++ b/Gemfile @@ -28,3 +28,4 @@ gem 'rake', '13.1.0', require: false gem 'rdoc', '6.6.2', require: false gem 'rubocop', '1.61.0', require: false gem 'rubocop-rspec', '2.27.1', require: false +gem 'simplecov', '0.22.0', require: false diff --git a/test/test__helper.rb b/test/test__helper.rb new file mode 100644 index 0000000..8fd6c9a --- /dev/null +++ b/test/test__helper.rb @@ -0,0 +1,30 @@ +# frozen_string_literal: true + +# (The MIT License) +# +# Copyright (c) 2021-2024 Yegor Bugayenko +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the 'Software'), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + +$stdout.sync = true + +require 'simplecov' +SimpleCov.start + +require 'minitest/autorun'