cocoapods-testing 0.0.2 → 0.0.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.
- checksums.yaml +4 -4
 - data/lib/cocoapods_testing.rb +1 -1
 - data/lib/pod/command/lib/testing.rb +16 -4
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 12933979c5ce8571d4fd14ba3496f69c23ee1859
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 768862b2662af7066c6df45660375f5c86561436
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 27639a9743847768bb5193d74d34b8cd775940151b6f282fef424d3a6172f395f734a52260e49b7657f035b9bba88769509da05d26915a678250ba789cfa6c1d
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: f64b0656c5253822a8743d70e01a479cc9a0c71969aeeb030c790c4987efe9254293273a30e4b9b6f82151033dd13cdc82d91267a858dc4b143f24467f73fac2
         
     | 
    
        data/lib/cocoapods_testing.rb
    CHANGED
    
    
| 
         @@ -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 
     | 
    
         
            -
                         
     | 
| 
       70 
     | 
    
         
            -
                        t.runner 
     | 
| 
      
 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. 
     | 
| 
      
 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- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2014-09-17 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: xctasks
         
     |