From 88eae0e6f02217c8ec07520109c505bc2b187254 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Wed, 4 Jan 2017 21:31:03 +0200 Subject: [PATCH] add colour output to tests --- Gemfile | 2 +- Gemfile.lock | 6 ++++-- test/helper.rb | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index cab53caf..bc629943 100644 --- a/Gemfile +++ b/Gemfile @@ -14,7 +14,7 @@ gem "codeclimate-test-reporter", require: nil group :development do gem "thor" , "0.19.1" - gem "minitest" + gem "minitest-color" gem 'guard' # NOTE: this is necessary in newer versions gem 'guard-minitest' gem "rb-readline" diff --git a/Gemfile.lock b/Gemfile.lock index dd71ba48..a30547ad 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -23,7 +23,7 @@ GEM specs: annoy (0.5.6) highline (>= 1.5.0) - codeclimate-test-reporter (1.0.3) + codeclimate-test-reporter (1.0.4) simplecov coderay (1.1.1) docile (1.1.5) @@ -53,6 +53,8 @@ GEM lumberjack (1.0.10) method_source (0.8.2) minitest (5.10.1) + minitest-color (0.0.2) + minitest (~> 5) nenv (0.3.0) net-scp (1.2.1) net-ssh (>= 2.6.5) @@ -101,7 +103,7 @@ DEPENDENCIES codeclimate-test-reporter guard guard-minitest - minitest + minitest-color rake rb-readline rye diff --git a/test/helper.rb b/test/helper.rb index 5fc50b5c..6343b3a0 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -12,6 +12,7 @@ if ENV['CODECLIMATE_REPO_TOKEN'] SimpleCov.start { add_filter "/test/" } end +require "minitest/color" require "minitest/autorun" $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))