Skip to content

Commit

Permalink
Minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bayandin committed Dec 13, 2015
1 parent 97da21d commit fc3487a
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
parallel_cucumber (0.1.16)
parallel_cucumber (0.1.17)
cucumber
parallel (~> 1.6)

Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
```
2 changes: 1 addition & 1 deletion lib/parallel_cucumber/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down
2 changes: 1 addition & 1 deletion lib/parallel_cucumber/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/parallel_cucumber/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module ParallelCucumber
VERSION = '0.1.16'
VERSION = '0.1.17'
end # ParallelCucumber

0 comments on commit fc3487a

Please sign in to comment.