summaryrefslogtreecommitdiff
path: root/test/test_helper.rb
blob: 32bfcb86c0654e3d526cc230901511b445fe2d9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env ruby
# coding: utf-8

require "English"

# Run code coverage only for mri
require "simplecov" if RUBY_ENGINE == "ruby"

# Compatibility module for StringIO, File
# and Tempfile. Necessary for some tests.
require "highline/io_console_compatible"

require "highline"
debug_message = "Tests will be run under:\n"
debug_message << "  - #{HighLine.new.terminal.class}\n"
debug_message << "  - HighLine::VERSION #{HighLine::VERSION}\n"

debug_message << "  - #{RUBY_DESCRIPTION}\n" if defined? RUBY_DESCRIPTION

puts debug_message

require "minitest/autorun"