Sha256: 86be8423260da226f3746e39ba7d2fa665884e8879502eb724dadac557444eed

Contents?: true

Size: 975 Bytes

Versions: 2

Compression:

Stored size: 975 Bytes

Contents

require 'pathname'

namespace(:test) do

  task(:all) do
    test_root = Pathname(__FILE__).dirname

    files = %w(
          testunit/test_success.rb
          testunit/test_failure.rb
          minitest/test_success.rb
          minitest/test_failure.rb
           contest/test_success.rb
           contest/test_failure.rb
           context/test_success.rb
           context/test_failure.rb
           shoulda/test_success.rb
           shoulda/test_failure.rb
      expectations/test_success.rb
      expectations/test_failure.rb
    )
    files.map! {|file| Pathname(file).expand_path(test_root) }
    files.each {|file| system("ruby -rubygems -I.:lib #{file}") }
  end

  task(:by_fw) do
    test_root  = Pathname(__FILE__).dirname.expand_path
    frameworks = ENV['FW'].downcase.split(',')

    frameworks.each do |framework|
      files = Dir[test_root + framework.strip + '*']
      files.each {|file| system("ruby -rubygems -I.:lib #{file}") }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mynyml-redgreen-0.5.2 test/tests.rake
mynyml-redgreen-0.5.1 test/tests.rake