Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdickey/9877775 to your computer and use it in GitHub Desktop.
Save jdickey/9877775 to your computer and use it in GitHub Desktop.
Teaspoon `spec/teaspoon_env.rb` file with added code-coverage settings and RuboCop warnings disabled.
# encoding: utf-8
# This file allows you to override various Teaspoon 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.
#
# Set RAILS_ROOT and load the environment.
ENV['RAILS_ROOT'] = File.expand_path('../../', __FILE__)
require File.expand_path('../../config/environment', __FILE__)
# Provide default configuration.
#
# You can override various configuration directives defined here by using
# arguments with the teaspoon command.
#
# teaspoon --driver=selenium --suppress-log
# rake teaspoon DRIVER=selenium SUPPRESS_LOG=false
#
# rubocop:disable LeadingCommentSpace, LineLength
Teaspoon.setup do |config|
# Driver / Server
#config.driver = "phantomjs" # available: phantomjs, selenium
#config.server = nil # defaults to Rack::Server
# Behaviors
#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, 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,html,cobertura"
config.coverage do
reports = 'html'
output_path = 'coverage/script_coverage/'
end
end
# rubocop:enable LeadingCommentSpace, LineLength
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment