Skip to content

Commit

Permalink
Colorful tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsantoso committed Apr 23, 2015
1 parent 2332a39 commit 662b6ef
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Gemfile
Expand Up @@ -21,6 +21,7 @@ end

group :test do
gem 'shoulda'
gem "codeclimate-test-reporter", require: nil
gem 'codeclimate-test-reporter', require: nil
gem 'minitest-reporters'
end

8 changes: 8 additions & 0 deletions Gemfile.lock
Expand Up @@ -36,6 +36,7 @@ GEM
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
ansi (1.5.0)
arel (6.0.0)
awesome_print (1.6.1)
builder (3.2.2)
Expand Down Expand Up @@ -64,6 +65,11 @@ GEM
mime-types (2.4.3)
mini_portile (0.6.2)
minitest (5.5.1)
minitest-reporters (1.0.11)
ansi
builder
minitest (>= 5.0)
ruby-progressbar
multi_json (1.11.0)
nokogiri (1.6.6.2)
mini_portile (~> 0.6.0)
Expand Down Expand Up @@ -112,6 +118,7 @@ GEM
redis (3.2.1)
redis-namespace (1.5.2)
redis (~> 3.0, >= 3.0.4)
ruby-progressbar (1.7.5)
sdoc (0.4.1)
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
Expand Down Expand Up @@ -154,6 +161,7 @@ DEPENDENCIES
awesome_print
byebug
codeclimate-test-reporter
minitest-reporters
pg
pry-rails
puma
Expand Down
4 changes: 4 additions & 0 deletions test/test_helper.rb
Expand Up @@ -4,10 +4,14 @@
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
require 'minitest/reporters'

class ActiveSupport::TestCase
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
fixtures :all

# Add more helper methods to be used by all tests here...

reporter_options = { color: true }
Minitest::Reporters.use! [Minitest::Reporters::DefaultReporter.new(reporter_options)]
end

0 comments on commit 662b6ef

Please sign in to comment.