parallel_tests 2.0.0 → 2.1.0
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/Readme.md +3 -0
 - data/lib/parallel_tests/cli.rb +1 -0
 - data/lib/parallel_tests/test/runner.rb +1 -1
 - data/lib/parallel_tests/version.rb +1 -1
 - 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: e176cd85e6826766bdf2384b8234228932702e4f
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: a4b36614ab9fb29e56e52e48f0ada93a6fbe9d52
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: e8b1d312356733a01a44f5376ad3ee5f6cd8a77946b88d1e14af1ece15f97db055ae00f6654f87bb5e1c91ca8eb9b5ee0de29371c0319c27813775c7bc2c7102
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: c41eb3de31f8d17a7a2f35ecb80289106cac9d264eabf915baf265d3e62432f7a33260c7f7943d6a37b5b0dc5450a6fc39ed1039b3de5f6f7666e979a45c8597
         
     | 
    
        data/Readme.md
    CHANGED
    
    | 
         @@ -205,6 +205,8 @@ Options are: 
     | 
|
| 
       205 
205 
     | 
    
         
             
                    --ignore-tags [PATTERN]      When counting steps ignore scenarios with tags that match this pattern
         
     | 
| 
       206 
206 
     | 
    
         
             
                    --nice                       execute test commands with low priority.
         
     | 
| 
       207 
207 
     | 
    
         
             
                    --runtime-log [PATH]         Location of previously recorded test runtimes
         
     | 
| 
      
 208 
     | 
    
         
            +
                    --allowed-missing            Allowed percentage of missing runtimes (default = 50)
         
     | 
| 
      
 209 
     | 
    
         
            +
                    --unknown-runtime [FLOAT]    Use given number as unknown runtime (otherwise use average time)
         
     | 
| 
       208 
210 
     | 
    
         
             
                    --verbose                    Print more output
         
     | 
| 
       209 
211 
     | 
    
         
             
                -v, --version                    Show Version
         
     | 
| 
       210 
212 
     | 
    
         
             
                -h, --help                       Show this.
         
     | 
| 
         @@ -326,6 +328,7 @@ inspired by [pivotal labs](http://pivotallabs.com/users/miked/blog/articles/849- 
     | 
|
| 
       326 
328 
     | 
    
         
             
             - [Cezary Baginski](https://github.com/e2)
         
     | 
| 
       327 
329 
     | 
    
         
             
             - [Marius Ioana](https://github.com/mariusioana)
         
     | 
| 
       328 
330 
     | 
    
         
             
             - [Lukas Oberhuber](https://github.com/lukaso)
         
     | 
| 
      
 331 
     | 
    
         
            +
             - [Ryan Zhang](https://github.com/ryanus)
         
     | 
| 
       329 
332 
     | 
    
         | 
| 
       330 
333 
     | 
    
         | 
| 
       331 
334 
     | 
    
         
             
            [Michael Grosser](http://grosser.it)<br/>
         
     | 
    
        data/lib/parallel_tests/cli.rb
    CHANGED
    
    | 
         @@ -186,6 +186,7 @@ module ParallelTests 
     | 
|
| 
       186 
186 
     | 
    
         
             
                    opts.on('--ignore-tags [PATTERN]', 'When counting steps ignore scenarios with tags that match this pattern')  { |arg| options[:ignore_tag_pattern] = arg }
         
     | 
| 
       187 
187 
     | 
    
         
             
                    opts.on("--nice", "execute test commands with low priority.") { options[:nice] = true }
         
     | 
| 
       188 
188 
     | 
    
         
             
                    opts.on("--runtime-log [PATH]", "Location of previously recorded test runtimes") { |path| options[:runtime_log] = path }
         
     | 
| 
      
 189 
     | 
    
         
            +
                    opts.on("--allowed-missing", "Allowed percentage of missing runtimes (default = 50)") { |percent| options[:allowed_missing_percent] = percent }
         
     | 
| 
       189 
190 
     | 
    
         
             
                    opts.on("--unknown-runtime [FLOAT]", "Use given number as unknown runtime (otherwise use average time)") { |time| options[:unknown_runtime] = time.to_f }
         
     | 
| 
       190 
191 
     | 
    
         
             
                    opts.on("--verbose", "Print more output") { options[:verbose] = true }
         
     | 
| 
       191 
192 
     | 
    
         
             
                    opts.on("-v", "--version", "Show Version") { puts ParallelTests::VERSION; exit }
         
     | 
| 
         @@ -52,7 +52,7 @@ module ParallelTests 
     | 
|
| 
       52 
52 
     | 
    
         
             
                      when :filesize
         
     | 
| 
       53 
53 
     | 
    
         
             
                        sort_by_filesize(tests)
         
     | 
| 
       54 
54 
     | 
    
         
             
                      when :runtime
         
     | 
| 
       55 
     | 
    
         
            -
                        sort_by_runtime(tests, runtimes(tests, options), options.merge(allowed_missing: 0 
     | 
| 
      
 55 
     | 
    
         
            +
                        sort_by_runtime(tests, runtimes(tests, options), options.merge(allowed_missing: (options[:allowed_missing_percent] || 50) / 100.0))
         
     | 
| 
       56 
56 
     | 
    
         
             
                      when nil
         
     | 
| 
       57 
57 
     | 
    
         
             
                        # use recorded test runtime if we got enough data
         
     | 
| 
       58 
58 
     | 
    
         
             
                        runtimes = runtimes(tests, options) rescue []
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: parallel_tests
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 2. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 2.1.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Michael Grosser
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2015-11- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2015-11-26 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: parallel
         
     |