Skip to content

Commit fcee3d7

Browse files
committed
Use April O'Neil gem to format test output
1 parent 47917cf commit fcee3d7

File tree

4 files changed

+33
-1
lines changed

4 files changed

+33
-1
lines changed

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'april_oneil', '~> 0.0'

Gemfile.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
april_oneil (0.0.1)
5+
rainbow (~> 1.1)
6+
rainbow (1.1.4)
7+
8+
PLATFORMS
9+
ruby
10+
11+
DEPENDENCIES
12+
april_oneil (~> 0.0)

Rakefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
desc "Run tests"
22
task :test do
3-
system 'xctool -workspace Tests/ECSlidingViewController.xcworkspace -scheme ECSlidingViewController -sdk iphonesimulator test'
3+
system 'xctool -workspace Tests/ECSlidingViewController.xcworkspace -scheme ECSlidingViewController -sdk iphonesimulator -reporter Tests/ao-kiwi-progress test'
44
exit($?.exitstatus)
55
end
66

@@ -12,6 +12,7 @@ namespace :travis do
1212
task :install do
1313
system 'brew uninstall xctool'
1414
system 'brew install xctool --HEAD'
15+
system 'bundle install'
1516
end
1617

1718
task :script => 'test'

Tests/ao-kiwi-progress

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env ruby
2+
#
3+
# This file was generated by Bundler.
4+
#
5+
# The application 'ao-kiwi-progress' is installed as part of a gem, and
6+
# this file is here to facilitate running it.
7+
#
8+
9+
require 'pathname'
10+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11+
Pathname.new(__FILE__).realpath)
12+
13+
require 'rubygems'
14+
require 'bundler/setup'
15+
16+
load Gem.bin_path('april_oneil', 'ao-kiwi-progress')

0 commit comments

Comments
 (0)