diff --git a/Rakefile b/Rakefile index f0489d2..75ad4c2 100644 --- a/Rakefile +++ b/Rakefile @@ -5,6 +5,7 @@ namespace :test do desc "Run the AFNetworking Tests for iOS" task :ios => :prepare do + $ios_success_5_0 = system("xctool -workspace AFNetworking.xcworkspace -scheme 'iOS Tests' -sdk iphonesimulator5.0 -configuration Release test -test-sdk iphonesimulator5.0") $ios_success = system("xctool -workspace AFNetworking.xcworkspace -scheme 'iOS Tests' -sdk iphonesimulator -configuration Release test -test-sdk iphonesimulator") end @@ -16,6 +17,7 @@ end desc "Run the AFNetworking Tests for iOS & Mac OS X" task :test => ['test:ios', 'test:osx'] do + puts "\033[0;31m! iOS unit tests failed under iPhone Simulator 5.0 SDK" unless $ios_success_5_0 puts "\033[0;31m! iOS unit tests failed" unless $ios_success puts "\033[0;31m! OS X unit tests failed" unless $osx_success if $ios_success && $osx_success