Hello community,

here is the log from the commit of package rubygem-parallel_tests for 
openSUSE:Factory checked in at 2019-06-12 13:00:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-parallel_tests (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-parallel_tests.new.4811 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-parallel_tests"

Wed Jun 12 13:00:41 2019 rev:5 rq:706014 version:2.29.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-parallel_tests/rubygem-parallel_tests.changes
    2019-03-01 20:25:36.834066127 +0100
+++ 
/work/SRC/openSUSE:Factory/.rubygem-parallel_tests.new.4811/rubygem-parallel_tests.changes
  2019-06-12 13:00:42.797308504 +0200
@@ -1,0 +2,12 @@
+Sun May  5 09:38:29 UTC 2019 - Stephan Kulow <[email protected]>
+
+- updated to version 2.29.0
+  no changelog found
+
+-------------------------------------------------------------------
+Sat Mar  2 15:29:37 UTC 2019 - Stephan Kulow <[email protected]>
+
+- updated to version 2.28.0
+  no changelog found
+
+-------------------------------------------------------------------

Old:
----
  parallel_tests-2.27.1.gem

New:
----
  parallel_tests-2.29.0.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-parallel_tests.spec ++++++
--- /var/tmp/diff_new_pack.W9VwXR/_old  2019-06-12 13:00:43.605308325 +0200
+++ /var/tmp/diff_new_pack.W9VwXR/_new  2019-06-12 13:00:43.617308322 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-parallel_tests
-Version:        2.27.1
+Version:        2.29.0
 Release:        0
 %define mod_name parallel_tests
 %define mod_full_name %{mod_name}-%{version}

++++++ parallel_tests-2.27.1.gem -> parallel_tests-2.29.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Readme.md new/Readme.md
--- old/Readme.md       2019-01-01 13:24:04.000000000 +0100
+++ new/Readme.md       2019-05-04 23:02:50.000000000 +0200
@@ -195,6 +195,7 @@
 
     -n [PROCESSES]                   How many processes to use, default: 
available CPUs
     -p, --pattern [PATTERN]          run tests matching this regex pattern
+        --exclude-pattern [PATTERN]  exclude tests matching this regex pattern
         --group-by [TYPE]            group tests by:
           found - order of finding files
           steps - number of cucumber/spinach steps
@@ -223,8 +224,10 @@
         --runtime-log [PATH]         Location of previously recorded test 
runtimes
         --allowed-missing            Allowed percentage of missing runtimes 
(default = 50)
         --unknown-runtime [FLOAT]    Use given number as unknown runtime 
(otherwise use average time)
-        --verbose                    Print more output
-        --quiet                      Do not print anything, apart from test 
output
+        --verbose                    Print debug output
+        --verbose-process-command    Print the command that will be executed 
by each process before it begins
+        --verbose-rerun-command      After a process fails, print the command 
executed by that process
+        --quiet                      Print only test output
     -v, --version                    Show Version
     -h, --help                       Show this.
 
@@ -282,11 +285,6 @@
 
 Contribute your own gotchas to the 
[Wiki](https://github.com/grosser/parallel_tests/wiki) or even better open a PR 
:)
 
-TODO
-====
- - fix tests vs cucumber >= 1.2 `unknown option --format`
- - add unit tests for cucumber runtime formatter
-
 Authors
 ====
 inspired by [pivotal 
labs](https://blog.pivotal.io/labs/labs/parallelize-your-rspec-suite)
@@ -373,6 +371,8 @@
  - [David Rodríguez](https://github.com/deivid-rodriguez)
  - [Justin Doody](https://github.com/justindoody)
  - [Sandeep Singh](https://github.com/sandeepnagra)
+ - [Calaway](https://github.com/calaway)
+ - [alboyadjian](https://github.com/alboyadjian)
 
 [Michael Grosser](http://grosser.it)<br/>
 [email protected]<br/>
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/parallel_tests/cli.rb 
new/lib/parallel_tests/cli.rb
--- old/lib/parallel_tests/cli.rb       2019-01-01 13:24:04.000000000 +0100
+++ new/lib/parallel_tests/cli.rb       2019-05-04 23:02:50.000000000 +0200
@@ -124,7 +124,7 @@
       failing_sets = test_results.reject { |r| r[:exit_status] == 0 }
       return if failing_sets.none?
 
-      if options[:verbose]
+      if options[:verbose] || options[:verbose_rerun_command]
         puts "\n\nTests have failed for a parallel_test group. Use the 
following command to run the group again:\n\n"
         failing_sets.each do |failing_set|
           command = failing_set[:command]
@@ -164,6 +164,7 @@
         BANNER
         opts.on("-n [PROCESSES]", Integer, "How many processes to use, 
default: available CPUs") { |n| options[:count] = n }
         opts.on("-p", "--pattern [PATTERN]", "run tests matching this regex 
pattern") { |pattern| options[:pattern] = /#{pattern}/ }
+        opts.on("--exclude-pattern", "--exclude-pattern [PATTERN]", "exclude 
tests matching this regex pattern") { |pattern| options[:exclude_pattern] = 
/#{pattern}/ }
         opts.on("--group-by [TYPE]", <<-TEXT.gsub(/^          /, '')
           group tests by:
                     found - order of finding files
@@ -218,8 +219,10 @@
         opts.on("--allowed-missing [INT]", Integer, "Allowed percentage of 
missing runtimes (default = 50)") { |percent| options[:allowed_missing_percent] 
= percent }
         opts.on("--unknown-runtime [FLOAT]", Float, "Use given number as 
unknown runtime (otherwise use average time)") { |time| 
options[:unknown_runtime] = time }
         opts.on("--first-is-1", "Use \"1\" as TEST_ENV_NUMBER to not reuse the 
default test environment") { options[:first_is_1] = true }
-        opts.on("--verbose", "Print more output (mutually exclusive with 
quiet)") { options[:verbose] = true }
-        opts.on("--quiet", "Print tests output only (mutually exclusive with 
verbose)") { options[:quiet] = true }
+        opts.on("--verbose", "Print debug output") { options[:verbose] = true }
+        opts.on("--verbose-process-command", "Displays only the command that 
will be executed by each process") { options[:verbose_process_command] = true }
+        opts.on("--verbose-rerun-command", "When there are failures, displays 
the command executed by each process that failed") { 
options[:verbose_rerun_command] = true }
+        opts.on("--quiet", "Print only tests output") { options[:quiet] = true 
}
         opts.on("-v", "--version", "Show Version") { puts 
ParallelTests::VERSION; exit }
         opts.on("-h", "--help", "Show this.") { puts opts; exit }
       end.parse!(argv)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/parallel_tests/test/runner.rb 
new/lib/parallel_tests/test/runner.rb
--- old/lib/parallel_tests/test/runner.rb       2019-01-01 13:24:04.000000000 
+0100
+++ new/lib/parallel_tests/test/runner.rb       2019-05-04 23:02:50.000000000 
+0200
@@ -78,7 +78,7 @@
           cmd = "nice #{cmd}" if options[:nice]
           cmd = "#{cmd} 2>&1" if options[:combine_stderr]
 
-          puts cmd if options[:verbose] && !options[:serialize_stdout]
+          puts cmd if report_process_command?(options) && 
!options[:serialize_stdout]
 
           execute_command_and_capture_output(env, cmd, options)
         end
@@ -94,7 +94,9 @@
           exitstatus = $?.exitstatus
           seed = output[/seed (\d+)/,1]
 
-          output = [cmd, output].join("\n") if options[:verbose] && 
options[:serialize_stdout]
+          if report_process_command?(options) && options[:serialize_stdout]
+            output = [cmd, output].join("\n")
+          end
 
           {:stdout => output, :exit_status => exitstatus, :command => cmd, 
:seed => seed}
         end
@@ -209,14 +211,20 @@
         end
 
         def find_tests(tests, options = {})
-          (tests || []).map do |file_or_folder|
+          suffix_pattern = options[:suffix] || test_suffix
+          include_pattern = options[:pattern] || //
+          exclude_pattern = options[:exclude_pattern]
+
+          (tests || []).flat_map do |file_or_folder|
             if File.directory?(file_or_folder)
               files = files_in_folder(file_or_folder, options)
-              
files.grep(options[:suffix]||test_suffix).grep(options[:pattern]||//)
+              files = files.grep(suffix_pattern).grep(include_pattern)
+              files -= files.grep(exclude_pattern) if exclude_pattern
+              files
             else
               file_or_folder
             end
-          end.flatten.uniq
+          end.uniq
         end
 
         def files_in_folder(folder, options={})
@@ -229,6 +237,12 @@
           end
           Dir[File.join(folder, pattern)].uniq
         end
+
+        private
+
+        def report_process_command?(options)
+          options[:verbose] || options[:verbose_process_command]
+        end
       end
     end
   end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/parallel_tests/version.rb 
new/lib/parallel_tests/version.rb
--- old/lib/parallel_tests/version.rb   2019-01-01 13:24:04.000000000 +0100
+++ new/lib/parallel_tests/version.rb   2019-05-04 23:02:50.000000000 +0200
@@ -1,3 +1,3 @@
 module ParallelTests
-  VERSION = Version = '2.27.1'
+  VERSION = Version = '2.29.0'
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2019-01-01 13:24:04.000000000 +0100
+++ new/metadata        2019-05-04 23:02:50.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: parallel_tests
 version: !ruby/object:Gem::Version
-  version: 2.27.1
+  version: 2.29.0
 platform: ruby
 authors:
 - Michael Grosser
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2019-01-01 00:00:00.000000000 Z
+date: 2019-05-04 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: parallel


Reply via email to