Blame 0001-test-helper-disable-simplecov-and-minitest-plugins.patch

4287b03
From e84e5df700961ea9636a597ebdd247fa5c09b3b0 Mon Sep 17 00:00:00 2001
8a80f8c
From: Fabio Valentini <decathorpe@gmail.com>
8a80f8c
Date: Wed, 19 Sep 2018 12:16:08 +0200
4287b03
Subject: [PATCH 01/10] test/helper: disable simplecov and minitest plugins
8a80f8c
8a80f8c
---
8a80f8c
 test/helper.rb | 21 ---------------------
8a80f8c
 1 file changed, 21 deletions(-)
8a80f8c
4c9f0fa
diff --git a/test/helper.rb b/test/helper.rb
4287b03
index aa274a3d..e094a430 100644
4c9f0fa
--- a/test/helper.rb
4c9f0fa
+++ b/test/helper.rb
4c9f0fa
@@ -11,24 +11,10 @@ def jruby?
4c9f0fa
   defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby"
4c9f0fa
 end
4c9f0fa
 
4c9f0fa
-if ENV["CI"]
4c9f0fa
-  require "simplecov"
4c9f0fa
-  SimpleCov.start
4c9f0fa
-else
4c9f0fa
-  require File.expand_path("simplecov_custom_profile", __dir__)
4c9f0fa
-  SimpleCov.start "gem" do
4c9f0fa
-    add_filter "/vendor/gem"
4c9f0fa
-    add_filter "/vendor/bundle"
4c9f0fa
-    add_filter ".bundle"
4c9f0fa
-  end
4c9f0fa
-end
4c9f0fa
-
4c9f0fa
 require "nokogiri"
4c9f0fa
 require "rubygems"
4c9f0fa
 require "ostruct"
4c9f0fa
 require "minitest/autorun"
4c9f0fa
-require "minitest/reporters"
4c9f0fa
-require "minitest/profile"
4c9f0fa
 require "rspec/mocks"
4c9f0fa
 require_relative "../lib/jekyll.rb"
4c9f0fa
 
4c9f0fa
@@ -46,13 +32,6 @@ include Jekyll
4c9f0fa
 
4c9f0fa
 require "jekyll/commands/serve/servlet"
4c9f0fa
 
4c9f0fa
-# Report with color.
4c9f0fa
-Minitest::Reporters.use! [
4c9f0fa
-  Minitest::Reporters::DefaultReporter.new(
4c9f0fa
-    :color => true
4c9f0fa
-  ),
4c9f0fa
-]
4c9f0fa
-
4c9f0fa
 module Minitest::Assertions
4c9f0fa
   def assert_exist(filename, msg = nil)
4c9f0fa
     msg = message(msg) { "Expected '#{filename}' to exist" }
8a80f8c
-- 
4287b03
2.21.0
8a80f8c