henry-container 0.0.51 → 0.0.52

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ module Henry
3
3
  class Container
4
4
 
5
5
  # Current Gem version
6
- VERSION = '0.0.51'
6
+ VERSION = '0.0.52'
7
7
 
8
8
  end
9
9
 
@@ -10,7 +10,6 @@ module Henry
10
10
  #
11
11
  # @param [String] message the message to be appended.
12
12
  def info(message)
13
- puts 'aaaa'
14
13
  self.log(:info, message)
15
14
  end
16
15
 
@@ -43,7 +43,7 @@ module Henry
43
43
  if self.data.options
44
44
  t.cucumber_opts = self.custom_options
45
45
  else
46
- t.cucumber_opts = "--out #{OUT_PATH}"
46
+ t.cucumber_opts = self.default_options
47
47
  t.fork = false
48
48
  end
49
49
  end
@@ -55,14 +55,28 @@ module Henry
55
55
  #
56
56
  # @return [String]
57
57
  def custom_options
58
- "#{self.format_options} #{self.tags_options} #{self.report_options}"
58
+ "#{self.format_options} #{self.tags_options} #{self.report_options} #{self.misc_options}"
59
+ end
60
+
61
+ # Returns the miscellaneous cucumber_opts.
62
+ #
63
+ # @return [String]
64
+ def misc_options
65
+ "#{self.data.options['expand'] ? '--expand' : ''}"
66
+ end
67
+
68
+ # Returns the default cucumber_opts.
69
+ #
70
+ # @return [String]
71
+ def default_options
72
+ "--format pretty --format pretty --out #{OUT_PATH}"
59
73
  end
60
74
 
61
75
  # Returns the cucumber_opts related with formatting.
62
76
  #
63
77
  # @return [String]
64
78
  def format_options
65
- "--out #{OUT_PATH}"
79
+ "--format #{self.data.options['format'] || 'pretty'} --format #{self.data.options['format'] || 'pretty'} --out #{OUT_PATH}"
66
80
  end
67
81
 
68
82
  # Returns the cucumber_opts related with tags to be run.
@@ -65,14 +65,14 @@ module Henry
65
65
  #
66
66
  # @return [String]
67
67
  def default_options
68
- "--format documentation --out #{OUT_PATH}"
68
+ "--color --format documentation --format documentation --out #{OUT_PATH}"
69
69
  end
70
70
 
71
71
  # Returns the rspec_opts related with formatting.
72
72
  #
73
73
  # @return [String]
74
74
  def format_options
75
- "--format #{self.data.options['format'] || 'documentation'} --out #{OUT_PATH}"
75
+ "--color --format #{self.data.options['format'] || 'documentation'} --format #{self.data.options['format'] || 'documentation'} --out #{OUT_PATH}"
76
76
  end
77
77
 
78
78
  # Returns the rspec_opts related with tags to be run.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: henry-container
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.51
4
+ version: 0.0.52
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: