Sha256: 2be6164e13e8510aa61962ec0695341a6ecc4715cd091163a278aa508552bee9

Contents?: true

Size: 516 Bytes

Versions: 12

Compression:

Stored size: 516 Bytes

Contents

# coding: UTF-8

require 'rake'

namespace :dad do
  
  desc 'Cucumberを使用してテストを実行します。'
  task :test => :environment do
    system("mkdir -p features/reports")
    system("rm -Rf features/reports/*")

    args = []    
    ARGV[1..-1].each do |arg|
      unless arg.index('=')
        task arg.to_sym do ; end
      end
      args << arg
    end

    command = "bundle exec rake dad:cucumber #{args.join(' ')}"
    #puts command
    ret = system(command)
    fail unless ret
  end  
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
daddy-0.1.15 lib/tasks/test.rake
daddy-0.1.14 lib/tasks/test.rake
daddy-0.1.13 lib/tasks/test.rake
daddy-0.1.12 lib/tasks/test.rake
daddy-0.1.11 lib/tasks/test.rake
daddy-0.1.9 lib/tasks/test.rake
daddy-0.1.8 lib/tasks/test.rake
daddy-0.1.7 lib/tasks/test.rake
daddy-0.1.6 lib/tasks/test.rake
daddy-0.1.5 lib/tasks/test.rake
daddy-0.1.4 lib/tasks/test.rake
daddy-0.1.3 lib/tasks/test.rake