Sha256: 695e9fd05f548bbd987e06dd7ea9f100577bd143cd339bf7e36a367d26b7b691

Contents?: true

Size: 629 Bytes

Versions: 4

Compression:

Stored size: 629 Bytes

Contents

require File.dirname(__FILE__) + '/autotest'

BUILD_STATUS_FILE=".built"


file BUILD_STATUS_FILE => Dir.glob("Classes/*.[hm]") + Dir.glob("UnitTests/*.m") do
  notice = AutoTest::test_and_report
  File.open(BUILD_STATUS_FILE, 'w') {|f| f.write(notice * ": ")}  
end


task 'auto:remove_built_file' do
  FileUtils.rm_f(BUILD_STATUS_FILE)
end

desc "build and run the tests "
task 'auto:test:all'=>['auto:remove_built_file', 'auto:test']

desc "build and run the tests if changed"
task 'auto:test'=>[BUILD_STATUS_FILE] do
  out =  File.open('.built') {|f| f.read}
  print out.coloured(out =~ /Pass/ ? :green : :red) + "\n"
end



Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
nevans-iphone_testify-0.1.14 skeleton/Autotest.rake
paulanthonywilson-iphone_testify-0.1.10 skeleton/Autotest.rake
paulanthonywilson-iphone_testify-0.1.11 skeleton/Autotest.rake
paulanthonywilson-iphone_testify-0.1.12 skeleton/Autotest.rake