提交 b28e5c36 编写于 作者: A Abd ar-Rahman Hamidi

Add TEST_DIRS enviroment for constrain test directories in rakefile

上级 a92814b0
......@@ -12,8 +12,9 @@ task :test => 'test:isolated'
namespace :test do
task :isolated do
dir = ENV["TEST_DIR"] || "**"
Dir["test/#{dir}/*_test.rb"].each do |file|
dirs = (ENV["TEST_DIR"] || ENV["TEST_DIRS"] || "**").split(",")
test_files = dirs.map { |dir| "test/#{dir}/*_test.rb" }
Dir[*test_files].each do |file|
next true if file.include?("fixtures")
dash_i = [
'test',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册