sibanu_web/public/assets/vendor/jekyll/script/test
2022-08-20 13:21:23 +07:00

20 lines
277 B
Bash

#! /bin/bash
#
# Usage:
# script/test
# script/test <test_file>
if [ ! -d tmp ]; then
mkdir tmp
fi
if [ -z "$1" ]; then
TEST_FILES=$(ruby -e "puts Dir.glob('test/test_*.rb')")
else
TEST_FILES="$@"
fi
set -x
time bundle exec ruby -I"lib:test" -rloader $TEST_FILES