Sha256: 8e420618f2855826069a824aa1a1b960aea033d1dabf2b0935218ca3b116e823

Contents?: true

Size: 1.67 KB

Versions: 5

Compression:

Stored size: 1.67 KB

Contents

require 'bundler/setup'
require 'minitest/autorun'
require 'mocha'
require 'test_declarative'
require 'minitest/reporters'

module MiniTestReportersTest
  require File.expand_path('../support/test_case', __FILE__)

  module Fixtures
    require File.expand_path('../support/fixtures/test_case_fixture', __FILE__)
    require File.expand_path('../support/fixtures/empty_test_fixture', __FILE__)
    require File.expand_path('../support/fixtures/error_test_fixture', __FILE__)
    require File.expand_path('../support/fixtures/failure_test_fixture', __FILE__)
    require File.expand_path('../support/fixtures/pass_test_fixture', __FILE__)
    require File.expand_path('../support/fixtures/skip_test_fixture', __FILE__)
    require File.expand_path('../support/fixtures/suite_callback_test_fixture', __FILE__)
  end
end

MiniTest::Unit.runner = MiniTest::SuiteRunner.new

# Testing the built-in reporters using automated unit testing would be extremely
# brittle. Consequently, there are no unit tests for them. Instead, uncomment
# the reporter that you'd like to test and run the full test suite. Make sure to
# try them with skipped, failing, and error tests as well!
#
# Personally, I like the progress reporter. Make sure you don't change that line
# when you commit.
if ENV["TM_PID"]
  MiniTest::Unit.runner.reporters << MiniTest::Reporters::RubyMateReporter.new
elsif ENV["RM_INFO"]
  MiniTest::Unit.runner.reporters << MiniTest::Reporters::RubyMineReporter.new
else
  # MiniTest::Unit.runner.reporters << MiniTest::Reporters::DefaultReporter.new
  # MiniTest::Unit.runner.reporters << MiniTest::Reporters::SpecReporter.new
  MiniTest::Unit.runner.reporters << MiniTest::Reporters::ProgressReporter.new
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
minitest-reporters-0.7.1 test/test_helper.rb
minitest-reporters-0.7.0 test/test_helper.rb
minitest-reporters-0.6.0 test/test_helper.rb
minitest-reporters-0.5.1 test/test_helper.rb
minitest-reporters-0.5.0 test/test_helper.rb