uispecrunner 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG ADDED
@@ -0,0 +1,8 @@
1
+ v0.2.3
2
+ -------
3
+ - Added UISpecRunner::Options.from_file
4
+ - Added rake task example.
5
+
6
+ v0.2.2
7
+ -------
8
+ First public release.
data/README.md CHANGED
@@ -24,13 +24,14 @@ them from Github.
24
24
  - Support for reading configuration settings from
25
25
  - A Ruby API for configuring your own spec runners
26
26
  - Will read common arguments from uispec.opts file for easy per project configuration
27
+ - Includes a sample Rakefile for running your UISpec's
27
28
 
28
29
  ## TODO
29
30
  - Auto-detect SDK versions available
30
- - Rake file template
31
31
  - Support for running specific files
32
32
  - Support for running non-headless (either via AppleScript or iphonesim)
33
33
  - Generate a Kicker script
34
+ - Enabling Zombies (or other debugging flags, see http://code.google.com/p/google-toolbox-for-mac/source/browse/trunk/UnitTesting/RunIPhoneUnitTest.sh)
34
35
 
35
36
  ## Copyright
36
37
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
@@ -19,8 +19,7 @@ class UISpecRunner
19
19
  # Read standard arguments from uispec.opts
20
20
  options_file = 'uispec.opts'
21
21
  if File.exists?(options_file)
22
- option_file_args = File.readlines(options_file).map {|l| l.chomp.split " "}.flatten
23
- options = UISpecRunner::Options.new(option_file_args).merge(options)
22
+ options = UISpecRunner::Options.from_file(options_file).merge(options)
24
23
  end
25
24
 
26
25
  runner = UISpecRunner.new(options)
@@ -2,6 +2,11 @@ class UISpecRunner
2
2
  class Options < Hash
3
3
  attr_reader :opts, :orig_args
4
4
 
5
+ def self.from_file(options_file)
6
+ args = File.readlines(options_file).map {|l| l.chomp.split " "}.flatten
7
+ UISpecRunner::Options.new(args)
8
+ end
9
+
5
10
  def initialize(args)
6
11
  super()
7
12
 
data/tasks/uispec.rake ADDED
@@ -0,0 +1,35 @@
1
+ require 'rubygems'
2
+
3
+ begin
4
+ gem 'uispecrunner'
5
+ require 'uispecrunner'
6
+ require 'uispecrunner/options'
7
+ rescue LoadError => error
8
+ puts "Unable to load UISpecRunner: #{error}"
9
+ end
10
+
11
+ namespace :uispec do
12
+ desc "Run all specs"
13
+ task :all do
14
+ options = UISpecRunner::Options.from_file('uispec.opts') rescue {}
15
+ uispec_runner = UISpecRunner.new(options)
16
+ uispec_runner.run_all!
17
+ end
18
+
19
+ desc "Run all unit specs (those that implement UISpecUnit)"
20
+ task :units do
21
+ options = UISpecRunner::Options.from_file('uispec.opts') rescue {}
22
+ uispec_runner = UISpecRunner.new(options)
23
+ uispec_runner.run_protocol!('UISpecUnit')
24
+ end
25
+
26
+ desc "Run all integration specs (those that implement UISpecIntegration)"
27
+ task :integration do
28
+ options = UISpecRunner::Options.from_file('uispec.opts') rescue {}
29
+ uispec_runner = UISpecRunner.new(options)
30
+ uispec_runner.run_protocol!('UISpecIntegration')
31
+ end
32
+ end
33
+
34
+ desc "Run all specs"
35
+ task :default => 'uispec:all'
data/uispecrunner.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{uispecrunner}
8
- s.version = "0.2.2"
8
+ s.version = "0.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Blake Watters"]
12
- s.date = %q{2010-07-15}
12
+ s.date = %q{2010-07-16}
13
13
  s.default_executable = %q{uispec}
14
14
  s.description = %q{Provides a simple Ruby interface for running UISpec iPhone tests}
15
15
  s.email = %q{blake@twotoasters.com}
@@ -20,6 +20,7 @@ Gem::Specification.new do |s|
20
20
  ]
21
21
  s.files = [
22
22
  ".gitignore",
23
+ "CHANGELOG",
23
24
  "LICENSE",
24
25
  "README.md",
25
26
  "Rakefile",
@@ -35,6 +36,7 @@ Gem::Specification.new do |s|
35
36
  "src/UISpec+UISpecRunner.h",
36
37
  "src/UISpec+UISpecRunner.m",
37
38
  "src/main.m",
39
+ "tasks/uispec.rake",
38
40
  "uispecrunner.gemspec"
39
41
  ]
40
42
  s.homepage = %q{http://github.com/twotoasters/UISpecRunner}
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 2
9
- version: 0.2.2
8
+ - 3
9
+ version: 0.2.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Blake Watters
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-07-15 00:00:00 -04:00
17
+ date: 2010-07-16 00:00:00 -04:00
18
18
  default_executable: uispec
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -42,6 +42,7 @@ extra_rdoc_files:
42
42
  - README.md
43
43
  files:
44
44
  - .gitignore
45
+ - CHANGELOG
45
46
  - LICENSE
46
47
  - README.md
47
48
  - Rakefile
@@ -57,6 +58,7 @@ files:
57
58
  - src/UISpec+UISpecRunner.h
58
59
  - src/UISpec+UISpecRunner.m
59
60
  - src/main.m
61
+ - tasks/uispec.rake
60
62
  - uispecrunner.gemspec
61
63
  has_rdoc: true
62
64
  homepage: http://github.com/twotoasters/UISpecRunner