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.
- data/lib/henry/container/version.rb +1 -1
- data/lib/henry/logger.rb +0 -1
- data/lib/henry/task/cucumber_task.rb +17 -3
- data/lib/henry/task/rspec_task.rb +2 -2
- metadata +1 -1
data/lib/henry/logger.rb
CHANGED
@@ -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 =
|
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.
|