lib/cuesmash/cucumber.rb in cuesmash-0.1.3 vs lib/cuesmash/cucumber.rb in cuesmash-0.1.4
- old
+ new
@@ -18,20 +18,25 @@
attr_accessor :format
# Public: the cucumber profile to use for the tests
attr_accessor :profile
+ # Public: the cucumber quiet flag
+ attr_accessor :quiet
+
#
# Create a new instance of Cucumber
# @param ios [String] The iOS version cucumber will run
# @param tags [Array] The tags cucumber will run with
# @param profile [String] the cucumber profile to use for the tests
+ # @param quiet [Boolean]
#
- def initialize(ios, tags, profile)
+ def initialize(ios, tags, profile, quiet)
@ios = ios
@tags = tags
@profile = profile
+ @quiet = quiet
end
#
# Run the cucumber tests
#
@@ -92,9 +97,10 @@
command_string = "cucumber"
command_string += " --format #{self.format}" if self.format
command_string += " --out #{self.output}" if self.output
command_string += " --profile #{self.profile}" if self.profile
command_string += @tags.to_a.empty? ? "" : tag_arguments
+ command_string += " --quiet" if self.quiet
command_string += " -c"
Logger.debug "cucumber command == #{command_string}"
command_string