Sha256: c15406d05caa211748f5282ee6f39d72010be2f518e5db3557580d077878460d

Contents?: true

Size: 725 Bytes

Versions: 3

Compression:

Stored size: 725 Bytes

Contents

#!/usr/bin/env ruby
#
# Adds the project library directory
# and this test directory to Ruby's
# load path and runs the given tests.
#
# Usage:  ruby test/runner [TESTS_TO_RUN]
#
# Where:  TESTS_TO_RUN is a list of files
#         or file globbing patterns that
#         describe a set of files to run.
#
#         If this parameter is not given,
#         all *_test.rb files within or
#         beneath this directory are run.

lib_dir = File.expand_path('../../lib', __FILE__)
test_dir = File.expand_path('..', __FILE__)
$LOAD_PATH.unshift lib_dir, test_dir

require '#{package_name}/inochi'
require 'test_helper'

ARGV << "\#{test_dir}/**/*_test.rb" if ARGV.empty?
ARGV.each {|glob| Dir[glob].each {|test| load test } }

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
inochi-3.0.0 lib/inochi/templates/test_runner.rbs
inochi-2.0.1 lib/inochi/templates/test_runner.rbs
inochi-2.0.0 lib/inochi/templates/test_runner.rbs