diff --git a/Gemfile.lock b/Gemfile.lock index 2583005..898d6b9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - parallel_cucumber (0.1.16) + parallel_cucumber (0.1.17) cucumber parallel (~> 1.6) diff --git a/README.md b/README.md index b5dc5f3..4bc38c1 100644 --- a/README.md +++ b/README.md @@ -1 +1,14 @@ # Parallel Cucumber + +``` +Usage: parallel_cucumber [options] [ [FILE|DIR|URL][:LINE[:LINE]*] ] +Example: parallel_cucumber -n 4 -o "-f pretty -f html -o report.html" examples/i18n/en/features + -n [PROCESSES] How many processes to use + -o "[OPTIONS]", Run cucumber with these options + --cucumber-options + -e, --env-variables [JSON] Set additional environment variables to processes + -s, --setup-script [SCRIPT] Execute SCRIPT before each process + --thread-delay "[SECONDS]" Delay before next thread starting + -v, --version Show version + -h, --help Show this +``` diff --git a/lib/parallel_cucumber/cli.rb b/lib/parallel_cucumber/cli.rb index ba0f047..0868698 100644 --- a/lib/parallel_cucumber/cli.rb +++ b/lib/parallel_cucumber/cli.rb @@ -24,7 +24,7 @@ def parse_options!(argv) option_parser = OptionParser.new do |opts| opts.banner = [ 'Usage: parallel_cucumber [options] [ [FILE|DIR|URL][:LINE[:LINE]*] ]', - 'Example: parallel_cucumber ... ' + 'Example: parallel_cucumber -n 4 -o "-f pretty -f html -o report.html" examples/i18n/en/features' ].join("\n") opts.on('-n [PROCESSES]', Integer, 'How many processes to use') { |n| options[:n] = n } opts.on('-o', '--cucumber-options "[OPTIONS]"', 'Run cucumber with these options') do |cucumber_options| diff --git a/lib/parallel_cucumber/runner.rb b/lib/parallel_cucumber/runner.rb index 5eda6b8..25ddebd 100644 --- a/lib/parallel_cucumber/runner.rb +++ b/lib/parallel_cucumber/runner.rb @@ -64,7 +64,7 @@ def env_for_process(process_number) { TEST: 1, - TEST_THREAD_NUMBER: process_number + TEST_PROCESS_NUMBER: process_number }.merge(env).map { |k, v| [k.to_s, v.to_s] }.to_h end diff --git a/lib/parallel_cucumber/version.rb b/lib/parallel_cucumber/version.rb index 65c5ef1..dd79192 100644 --- a/lib/parallel_cucumber/version.rb +++ b/lib/parallel_cucumber/version.rb @@ -1,3 +1,3 @@ module ParallelCucumber - VERSION = '0.1.16' + VERSION = '0.1.17' end # ParallelCucumber