cocoapods-testing 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6952e7dc0337e1a1d2d52a3839c49757e79c7fba
4
- data.tar.gz: 19566e4c82f934510498e67ef285aec848e016dd
3
+ metadata.gz: 12933979c5ce8571d4fd14ba3496f69c23ee1859
4
+ data.tar.gz: 768862b2662af7066c6df45660375f5c86561436
5
5
  SHA512:
6
- metadata.gz: 140c6016624c64ea51620eb3c55ff96e1d2605314f2b6cda274392d2f284f1d3076f8e63c084352ea7c0e015fa86f6b9e01a1a8d8b6ea7695c9a299b8392feda
7
- data.tar.gz: 2cf23f360f13ad59962f74c8ab7432bc4e81dfb87b44f40d918b8e24ba93bc96b71d3f07a321e323f1b1dcf91bc6d2ffefae8f4a505f4bca759f30ceabe43777
6
+ metadata.gz: 27639a9743847768bb5193d74d34b8cd775940151b6f282fef424d3a6172f395f734a52260e49b7657f035b9bba88769509da05d26915a678250ba789cfa6c1d
7
+ data.tar.gz: f64b0656c5253822a8743d70e01a479cc9a0c71969aeeb030c790c4987efe9254293273a30e4b9b6f82151033dd13cdc82d91267a858dc4b143f24467f73fac2
@@ -1,3 +1,3 @@
1
1
  module CocoapodsTesting
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -11,6 +11,12 @@ module Pod
11
11
  class Testing < Lib
12
12
  self.summary = 'Run tests for any pod from the command line without any prior knowledge.'
13
13
 
14
+ def self.options
15
+ [
16
+ ['--verbose', 'Show full xcodebuild output.']
17
+ ]
18
+ end
19
+
14
20
  def handle_workspace(workspace, workspace_location)
15
21
  workspace.file_references.each do |ref|
16
22
  if ref.path.end_with?('.xcodeproj')
@@ -43,8 +49,6 @@ module Pod
43
49
  end
44
50
 
45
51
  if product_type.end_with?('bundle.unit-test')
46
- puts scheme_map
47
-
48
52
  scheme = scheme_map[target.name]
49
53
  # Fallback to first scheme if none is found for this target
50
54
  scheme = scheme_map.first[1] unless scheme && scheme.length > 0
@@ -66,10 +70,12 @@ module Pod
66
70
  # TODO: Figure out what this was supposed to do:
67
71
  # new(test: 'server:autostart')
68
72
  XCTasks::TestTask.new do |t|
69
- #t.runner = :xcodebuild
70
- t.runner = :xcpretty
73
+ t.actions = %w(clean build test)
74
+ t.runner = @@verbose ? :xcodebuild : :xcpretty
71
75
  t.workspace = workspace
72
76
 
77
+ t.actions << @@args unless @@args.nil?
78
+
73
79
  t.subtask(unit: scheme_name) do |s|
74
80
  # TODO: version should be configurable
75
81
  s.ios_versions = %w(7.1)
@@ -101,6 +107,12 @@ module Pod
101
107
  end
102
108
  end
103
109
 
110
+ def initialize(argv)
111
+ @@verbose = argv.flag?('verbose')
112
+ @@args = argv.arguments!
113
+ super
114
+ end
115
+
104
116
  def run
105
117
  podspecs_to_check.each do # |path|
106
118
  # TODO: How to link specs to projects/workspaces?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-testing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boris Bügling
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-17 00:00:00.000000000 Z
11
+ date: 2014-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xctasks