Sha256: 144c4d7cf7baef8f43cecaa3daca6ef652a7a74fca89d68e8615c8a86aee5ea0
Contents?: true
Size: 483 Bytes
Versions: 9
Compression:
Stored size: 483 Bytes
Contents
%w[unit functional integration performance].each do |type| desc "Run #{type} tests" task "test:#{type}" do require "./test/test_helper" Dir.glob "./test/#{type}/*_test.rb" do |f| require f end end desc "Run single file tests" task "test:#{type}:file" do file = "./test/#{type}/#{ENV["name"]}_test.rb" if File.exists? file require "./test/test_helper" require file else puts "Test file not found: #{file}" end end end
Version data entries
9 entries across 9 versions & 1 rubygems