Skip to content

Commit f8c35cc

Browse files
committed
Add colorized output for full Rake suite execution
1 parent 2fd239e commit f8c35cc

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Rakefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,15 @@ namespace :test do
6161
task :application => 'application:ios'
6262

6363
desc "Run all tests for iOS and OS X"
64-
task :all => ['test:logic', 'test:application']
64+
task :all do
65+
Rake.application.invoke_task("test:logic")
66+
unit_status = $?.exitstatus
67+
Rake.application.invoke_task("test:application")
68+
integration_status = $?.exitstatus
69+
puts "\033[0;31m!! Unit Tests failed with exit status of #{unit_status}" if unit_status != 0
70+
puts "\033[0;31m!! Integration Tests failed with exit status of #{integration_status}" if integration_status != 0
71+
puts "\033[0;32m** All Tests executed successfully" if unit_status == 0 && integration_status == 0
72+
end
6573

6674
task :check_mongodb do
6775
port_check = RestKit::Server::PortCheck.new('127.0.0.1', 27017)

0 commit comments

Comments
 (0)