spec/teabag_env.rb in teabag-0.5.5 vs spec/teabag_env.rb in teabag-0.6.0
- old
+ new
@@ -1,26 +1,32 @@
# This file allows you to override various Teabag configuration directives when running from the command line. It is not
# required from within the Rails environment, so overriding directives that have been defined within the initializer
# is not possible.
#
-# You can override various configuration directives defined here by using arguments with the teabag command.
-#
-# teabag --driver=selenium --fail_fast=false
-# rake teabag FAIL_FAST=false
-#
# Set RAILS_ROOT and load the environment.
ENV["RAILS_ROOT"] = File.expand_path("../dummy", __FILE__)
require File.expand_path("../dummy/config/environment", __FILE__)
+# Provide default configuration.
+#
+# You can override various configuration directives defined here by using arguments with the teabag command.
+#
+# teabag --driver=selenium --suppress-log
+# rake teabag DRIVER=selenium SUPPRESS_LOG=false
Teabag.setup do |config|
# Driver
- #config.driver = "selenium" # available: phantomjs, selenium
+ #config.driver = "phantomjs" # available: phantomjs, selenium
# Behaviors
- #config.server_timeout = 20 # timeout for starting the server
- #config.fail_fast = true # abort after the first failing suite
+ #config.server_timeout = 20 # timeout for starting the server
+ #config.server_port = nil # defaults to any open port unless specified
+ #config.fail_fast = true # abort after the first failing suite
# Output
- #config.formatters = "dot" # available: dot, tap_y, swayze_or_oprah
- #config.suppress_log = false # suppress logs coming from console[log/error/debug]
- #config.color = true
+ #config.formatters = "dot" # available: dot, tap_y, swayze_or_oprah
+ #config.suppress_log = false # suppress logs coming from console[log/error/debug]
+ #config.color = true
+
+ # Coverage (requires istanbul -- https://github.com/gotwarlost/istanbul)
+ #config.coverage = true
+ #config.coverage_reports = "text-summary,text,html,cobertura"
end