itriagetestrail 0.3.8 → 0.3.9
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/itriagetestrail/version.rb +1 -1
 - data/lib/itriagetestrail.rb +10 -4
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 746dccc6b0b7e8cb59226fcbe166e1890b8da140
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: d3bad34cf00f612f12bf39f03d1f146f7d6a2070
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 334592ce2d16d98082c6c9f8d40fc8337b76386bf417002e12d99314b2f8b256e5b633f3eb68aef96108b17cadbca74bc68633c5cd28c2cd351c6556129ade03
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: de7a0fa19f48c33ea9d1b883cb3a1e5e6003e45e663410434126e4e2c51d1cda49315fba0219fafa3ff5003da688c6ff2ec3544e16b5d562d28b9a417e3aa153
         
     | 
    
        data/lib/itriagetestrail.rb
    CHANGED
    
    | 
         @@ -303,8 +303,6 @@ module Itriagetestrail 
     | 
|
| 
       303 
303 
     | 
    
         
             
                end
         
     | 
| 
       304 
304 
     | 
    
         | 
| 
       305 
305 
     | 
    
         
             
                def extend_testrail_run
         
     | 
| 
       306 
     | 
    
         
            -
                  # Get a list of test cases from prior runs
         
     | 
| 
       307 
     | 
    
         
            -
                  @existing_cases = File.read('./tmp/testrail_ids')
         
     | 
| 
       308 
306 
     | 
    
         | 
| 
       309 
307 
     | 
    
         
             
                  # Reset test scope to include all cases
         
     | 
| 
       310 
308 
     | 
    
         
             
                  body = { include_all: true }
         
     | 
| 
         @@ -312,7 +310,8 @@ module Itriagetestrail 
     | 
|
| 
       312 
310 
     | 
    
         
             
                end
         
     | 
| 
       313 
311 
     | 
    
         | 
| 
       314 
312 
     | 
    
         
             
                def existing_cases
         
     | 
| 
       315 
     | 
    
         
            -
                   
     | 
| 
      
 313 
     | 
    
         
            +
                  # Read only means to get a list of test cases from prior runs
         
     | 
| 
      
 314 
     | 
    
         
            +
                  File.read('./tmp/testrail_ids').split(',')
         
     | 
| 
       316 
315 
     | 
    
         
             
                end
         
     | 
| 
       317 
316 
     | 
    
         | 
| 
       318 
317 
     | 
    
         
             
                # open a test run to submit test results
         
     | 
| 
         @@ -389,7 +388,14 @@ module Itriagetestrail 
     | 
|
| 
       389 
388 
     | 
    
         
             
                end
         
     | 
| 
       390 
389 
     | 
    
         | 
| 
       391 
390 
     | 
    
         
             
                def store_case_ids(list)
         
     | 
| 
       392 
     | 
    
         
            -
                   
     | 
| 
      
 391 
     | 
    
         
            +
                  new_list = []
         
     | 
| 
      
 392 
     | 
    
         
            +
                  list.each { |item| new_list << item }
         
     | 
| 
      
 393 
     | 
    
         
            +
             
     | 
| 
      
 394 
     | 
    
         
            +
                  f = File.open('./tmp/testrail_ids', 'r+')
         
     | 
| 
      
 395 
     | 
    
         
            +
                  f.read.split(',').each{ |item| new_list << item.to_i}
         
     | 
| 
      
 396 
     | 
    
         
            +
                  f.rewind
         
     | 
| 
      
 397 
     | 
    
         
            +
                  f.write new_list.join(',')
         
     | 
| 
      
 398 
     | 
    
         
            +
                  f.close
         
     | 
| 
       393 
399 
     | 
    
         
             
                end
         
     | 
| 
       394 
400 
     | 
    
         | 
| 
       395 
401 
     | 
    
         
             
                # this is the hack at very end to exclude tests which frameworks like MiniTest and Cucumber did not touch
         
     |