brake 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/brake.rb +4 -1
  2. metadata +2 -2
data/lib/brake.rb CHANGED
@@ -47,6 +47,7 @@ class Brake
47
47
  opts.on("-p", "--platform brandwatchWeb", String, "String: The platform to run the tests on eg brandwatchWeb" ) { |o| options.push([:platform, o]) }
48
48
  opts.on("-t", "--tags @high,@login", Array, "Array: A list of all tagged test to be run" ) { |o| options.push([:tags, o]) }
49
49
  opts.on("-l", "--log_level debug", String, "String: The log output level debug|info" ) { |o| options.push([:log_level, o]) }
50
+ opts.on("-d", "--dru-run", "Bool: turns on the selenium dry run feature" ) { |o| options.push([:dry_run, o]) }
50
51
  opts.separator ""
51
52
  opts.separator "BrandwatchWeb options:"
52
53
  opts.on("-c", "--controller chrome", String, "String: The type of controller to run (API, Chrome, Safari)" ) { |o| options.push([:controller, o]) }
@@ -76,7 +77,7 @@ class Brake
76
77
  # creates the default arguments
77
78
  # --require features Ensures that all features are included
78
79
  # -P Disables profiles, we no longer need it as all data is given at command line
79
- arguments = { :req => "--require features" }
80
+ arguments = { :req => "--require features -P -s" }
80
81
 
81
82
  # takes the parsed options and turns them into meaningful data
82
83
  # the data is later read by the automation code
@@ -91,6 +92,8 @@ class Brake
91
92
  arguments[:tags].push( "--tags #{value[1].join(',')}" )
92
93
  when :log_level
93
94
  arguments[:log_level] = "LOGLEVEL=#{value[1].downcase}"
95
+ when :dry_run
96
+ arguments[:dry_run] = "--dry-run"
94
97
  when :highlight
95
98
  arguments[:highlight] = "HIGHLIGHT=true"
96
99
  when :controller
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-09-25 00:00:00.000000000 Z
13
+ date: 2012-10-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake